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

Allied Motion - Brushless Torque Motors: Frameless & Housed

Allied Motion - Brushless Torque Motors: Frameless & Housed

Allied Motion offers both housed and frameless families of brushless torque motors. These motors are among the highest performance torque motors available. Frameless diameters range from 19 through 792 mm with stall torque ranging up to 2020 Nm. All housed torque motors are available with integrated encoder and the MFH models include an integrated servo drive. Custom-engineered models to meet specific requirements are our specialty. Learn more about Allied Motion Brushless Torque Motors