SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Solving the robot problem
• I want to build a robot
• I love coding
• I want pro gear
   –   servos
   –   motors
   –   accelerometers
   –   GPS
   –   etc
• I want it on the web
• I want it now
So, this robot…
• has physical devices that attach simply
• is running a software framework that
  – talks to those physical devices
  – exposes their properties to the web
  – responds to user input from the web in as close to
    real time as possible
  – can express a degree of autonomy
  – is fast to develop in
But isn’t JavaScript a terrible language
          to build robots with?
• JavaScript has bad timers
• Very slow and memory inefficient compared
  to close-to-the-metal languages like C/C++
• All the C/Java guys I know are like, "What the
  hell are you doing? Are you crazy?"
Those guys don’t know everything
• We have modern, low wattage RISC based ARM
  processors
• We have modern interpreters (i.e. V8) that are
  very good at optimising our code at run time
• Writing device drivers in C/C++ is a total chore for
  most people
• We can buy off the shelf components that can do
  our time critical
• It’s not the 90s!
What do we gain by using JavaScript?
• It makes a lot of high level tasks very easy
• These days it can do way cool stuff
• Big community FTW
Who’s crazy now?
What currently exists for JS robotics?
• The original talk:
    http://www.slideshare.net/nonken/robotic-javascript
•   Nodecopter (nodecopter.com)
•   Nodeserial (@voodootikigod)
•   Firmata (Julian Gautier)
•   Johnny 5 (Rick Waldron)
What do they do for us?
• Nodecopter helps us talk to a proprietary
  helicopter drone
• Nodeserial helps us talk to the serial port
• Firmata helps us talk with an Arduino
• Johnny5 helps us control that Arduino with JS
What’s the ideal architecture?
What’s the ideal architecture?
•   We want a familiar interface
•   Web pages are good
•   Something REST-like would be ideal
•   Express helps
•   BackboneIO (Backbone over WebSockets)
•   State machine representation of physical devices
•   Adding a new physical device should be as simple
    as plugging it in
What’s the ideal architecture?
• Model-Collection-Controller/Model-View-
  Collection
• Discrete physical devices are represented as
  discrete models in memory on server
• Models bound to device change events
• Controllers talk to client via WebSockets
• Robot's canonical state kept on server, allows
  autonomous behaviour
Step up Raspberry Pi
•   Modern ARM based SOC
•   Low power
•   Runs Linux
•   Loads of storage space
•   USB 2.0
•   Bonus onboard graphics processor
Add some clever USB devices
• Wifi
• Pololu
  – serial comms using serialport
• Phidget
  – http/serial bridge using phigetapi
Add Node.JS and the SPD framework
• Listens on local TCP/IP network
• Serves up dynamic web pages
• Uses Backbone API
• Automagically builds models on client
• Changes in remote hardware bound directly to
  client-side events
• Looks to all the world exactly like a web site
• We don’t even have to care about transport
Robot is online
Give me that checklist
• It’s got servos
• It’s got motors
• It’s got GPS
• It’s got accelerometers
• It’s got Arduino (should you really need non-USB based
  sensor arrays)
• It communicates with the web in real time

It’s going to get a lot more
• Real time streaming HD video
• Kinect vision
• Firmata?
Enough talk
•   Drive the car around the stage
•   Get my Google Map on
•   Detect a crash
•   Damn
Notes
Bibliography                Shout outs
• Available on request      • jashkenas
                            • voodootikigod
                            • RIAEvangelist
                            • visionmedia
WE’RE HIRING

WWW.YAMMER.COM/JOBS
      @rayui

Weitere ähnliche Inhalte

KĂźrzlich hochgeladen

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

KĂźrzlich hochgeladen (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Empfohlen

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slidesAlireza Esmikhani
 

Empfohlen (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Scaling into Meatspace: A JavaScript engineer's persepctive

  • 1.
  • 2. Solving the robot problem • I want to build a robot • I love coding • I want pro gear – servos – motors – accelerometers – GPS – etc • I want it on the web • I want it now
  • 3. So, this robot… • has physical devices that attach simply • is running a software framework that – talks to those physical devices – exposes their properties to the web – responds to user input from the web in as close to real time as possible – can express a degree of autonomy – is fast to develop in
  • 4. But isn’t JavaScript a terrible language to build robots with? • JavaScript has bad timers • Very slow and memory inefficient compared to close-to-the-metal languages like C/C++ • All the C/Java guys I know are like, "What the hell are you doing? Are you crazy?"
  • 5. Those guys don’t know everything • We have modern, low wattage RISC based ARM processors • We have modern interpreters (i.e. V8) that are very good at optimising our code at run time • Writing device drivers in C/C++ is a total chore for most people • We can buy off the shelf components that can do our time critical • It’s not the 90s!
  • 6. What do we gain by using JavaScript? • It makes a lot of high level tasks very easy • These days it can do way cool stuff • Big community FTW
  • 8. What currently exists for JS robotics? • The original talk: http://www.slideshare.net/nonken/robotic-javascript • Nodecopter (nodecopter.com) • Nodeserial (@voodootikigod) • Firmata (Julian Gautier) • Johnny 5 (Rick Waldron)
  • 9. What do they do for us? • Nodecopter helps us talk to a proprietary helicopter drone • Nodeserial helps us talk to the serial port • Firmata helps us talk with an Arduino • Johnny5 helps us control that Arduino with JS
  • 10. What’s the ideal architecture?
  • 11. What’s the ideal architecture? • We want a familiar interface • Web pages are good • Something REST-like would be ideal • Express helps • BackboneIO (Backbone over WebSockets) • State machine representation of physical devices • Adding a new physical device should be as simple as plugging it in
  • 12. What’s the ideal architecture? • Model-Collection-Controller/Model-View- Collection • Discrete physical devices are represented as discrete models in memory on server • Models bound to device change events • Controllers talk to client via WebSockets • Robot's canonical state kept on server, allows autonomous behaviour
  • 13. Step up Raspberry Pi • Modern ARM based SOC • Low power • Runs Linux • Loads of storage space • USB 2.0 • Bonus onboard graphics processor
  • 14. Add some clever USB devices • Wifi • Pololu – serial comms using serialport • Phidget – http/serial bridge using phigetapi
  • 15. Add Node.JS and the SPD framework • Listens on local TCP/IP network • Serves up dynamic web pages • Uses Backbone API • Automagically builds models on client • Changes in remote hardware bound directly to client-side events • Looks to all the world exactly like a web site • We don’t even have to care about transport
  • 17. Give me that checklist • It’s got servos • It’s got motors • It’s got GPS • It’s got accelerometers • It’s got Arduino (should you really need non-USB based sensor arrays) • It communicates with the web in real time It’s going to get a lot more • Real time streaming HD video • Kinect vision • Firmata?
  • 18. Enough talk • Drive the car around the stage • Get my Google Map on • Detect a crash • Damn
  • 19. Notes Bibliography Shout outs • Available on request • jashkenas • voodootikigod • RIAEvangelist • visionmedia

Hinweis der Redaktion

  1. I want to build a robotbut I hate solderingI love codingbut I hate the pain of embedded languagesI want pro gear: servos, motors, accelerometers, GPS, etc.but I don’t want to have to care about TTL, parity checks, serial cables or baud ratesI want it on the webI want it nowtomorrow is acceptable
  2. JavaScript has bad timersincapable of generating high precision line signals for GPIO devicesVery slow and memory inefficient compared to close-to-the-metal languages like C/C++you’d never write a device driver in itprobably sucks for battery lifeAll the C/Java guys I know are like, "What the hell are you doing? Are you crazy?"
  3. We have modern, low wattage RISC based ARM processorsWe have modern interpreters (i.e. V8) that are very good at optimising our code at run timeWriting device drivers in C/C++ is a total chore for most people and should be avoided if at all possibleWe can buy off the shelf components that can do our time critical stuff and still talk high level protocolsIt’s not the 90s! Why are we even talking about writing device drivers?
  4. It makes a lot of high level tasks very easyproduce a working prototype, fastavoid boring tasks that have already been solvedall the wholesome goodness of the Internet OOBeventscan everyone say "behaviour"?These days it can do cool things likebe a serverreal time Internet using WebSocketsspeak protocols other than Internet, e.g. serialBig communityJS is the World's most popular programming language and is FTW
  5. Nodecopter helps us talk to a proprietary helicopter dronethat's just talking to a robot that someone else built.Nodeserial helps us talk to the serial portthis is great because it's useful for all sorts of devices but it doesn't tell us how to talk to our devicesFirmataLovely idea but just tells us how to talk, not what to sayJohnny5 helps us control an Arduino with JSagain, great but if I want cool stuff like GPS I still have to wire it myselfstill doesn't help with our goal of fully integrating both meat and cyber spaces
  6. Model-Collection-Controller/Model-View-CollectionDiscrete physical devices are represented as discrete models in memory on serverModels bound to device change eventsControllers talk to client via WebSocketsRobot's canonical state kept on server (the car itself!), allowingautonomous behaviournetwork failover handled gracefully
  7. WifiPololu (serial using serialport)Phidget (http/serial bridge using phigetapi)