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

maxon motor’s - Compact power for your motion control application.

maxon motor's - Compact power for your motion control application.

maxon launches the next generation of positioning controllers - the EPOS4. A high performance module with detachable pin headers and two different power ratings. With a connector board, the modules can be combined into a ready-to-install compact solution. Suitable for efficient and dynamic control of brushed and brushless DC motors with Hall sensors and encoders up to 750 W continuous power and 1500 W peak power. The modular concept also provides for a wide variety of expansion options with Ethernet-based interfaces, such as EtherCAT or absolute rotary encoders.