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

The piCOBOT Electric vacuum generator

The piCOBOT Electric vacuum generator

Fully electric, slim design and absence of air-tubing and cabling. The new piCOBOT® Electric heads towards another success for Piab's piCOBOT® program. A secondary effect of these achievements is the absence of entangling air tubing and cabling. It simplifies the installation, and as the new piCOBOT® Electric only needs a single connection on the cobot arm, the clean set-up allows a completely unrestricted movement. The new piCOBOT® Electric package will contain plug & play software to fit UR e-series cobots, but many other useful adaptations will be introduced in the coming year