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

ST Robotics - r12 robot arm

ST Robotics - r12 robot arm

ST Robotics have decades of experience in industrial robots having sold hundreds of robots over the years. The company has 3 main models, R12, R17 and R19 all using a unique simple industrial technology that dramatically reduces costs resulting in the lowest priced industrial robots available. The same uncomplicated technology vastly improves reliability. ST backs this up with a 2 year warranty. Typical applications are routine testing, sample handling and also education. The software is a different paradigm from most robots. It is command based; you type a command and see immediate action. Programming is a building block approach, building confidence as you program in small 'mind-sized bytes'. ST offers free unlimited technical support.