We believe that it's time to bring
Ruby and Robots together.
Next generation robotics framework with
support for 15 different platforms
Next generation robotics framework with
support for 15 different platforms
Artoo's simple code makes telling robots what to do incredibly simple and fun.
All you need to get started is the artoo
gem
require 'artoo'
Then hook it up to your robot (in this case, a Sphero)
connection :sphero, adaptor: :sphero, port: '4560' device :sphero, driver: :sphero
And tell it what to do!
work do every(3.seconds) do puts "Rolling..." sphero.roll 60, rand(360) end end
Artoo has an extensible system for connecting to hardware devices. The following robotics and physical computing platforms are currently supported:
More platforms are coming soon!
Artoo also has support for devices that can work across multiple hardware platforms.
See more drivers here
Artoo includes a RESTful API to query the status of any robot running within a group, including the connection and device status, and device streaming data via websockets.
To activate the API, use the api
command like this:
require 'artoo' connection :loop device :passthru api :host => '127.0.0.1', :port => '4321' work do puts "Hello from the API running at #{api_host}:#{api_port}..." end
Gort is a Command Line Toolkit (CLI) for RobotOps. Gort provides tools to scan for connected devices, upload firmware, and it works perfectly with Gobot. Also included with Gobot is a CLI for generating new robots and adaptors.
You can can learn more about Gobot's CLI in the docs here.