Artoo: Ruby on Robots

From Artoo, a ruby framework, that supports 15 platforms including ARrone, Crazyflie, Sphero, and Arduino:

Modular Example

require 'artoo/robot'

SPHEROS = ["4567", "4568", "4569", "4570", "4571"]

class SpheroRobot < Artoo::Robot
  connection :sphero, :adaptor => :sphero
  device :sphero, :driver => :sphero

  work do
    every(3.seconds) do
      sphero.roll 90, rand(360)
    end
  end
end

robots = []
SPHEROS.each {|p|
  robots << SpheroRobot.new(:connections => 
                              {:sphero => 
                                {:port => p}})
}

SpheroRobot.work!(robots)

more information (here) and at (github)

Comments (0)

This post does not have any comments. Be the first to leave a comment below.


Post A Comment

You must be logged in before you can post a comment. Login now.

Featured Product

 Discover the power of Omron mobile robotics.

Discover the power of Omron mobile robotics.

Our fully autonomous intelligent vehicles will help you to transform the way you move materials and route your workflows. Increase throughput, eliminate material flow errors, improve traceability, maximize flexibility and allow your employees to focus on higher level tasks. Unlike traditional AGV's, our mobile robotics navigate using the natural features of your facility and do not require expensive facility modifications or guidance. Our AIV's can adapt to changes in their environment and work freely and safely with your staff. Our mobile robots are intelligent enough to quickly learn their environment and then automatically find the optimal path to where they need to go. They also automatically make adjust for dynamic environments and can work together in fleets of up to 100 robots.