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 maxon IDX Compact Drive with Integrated Positioning Controller

The maxon IDX Compact Drive with Integrated Positioning Controller

The compact brushless EC-i motor combined with an EPOS4 positioning controller delivers a highly dynamic, powerful drive package with field-oriented control (FOC), high efficiency, and maintenance-free components in a high-quality industrial housing. The maxon IDX drives are suitable for use across the entire speed range (from standstill to maximum speed) and have an extremely high overload capability. Together with a positioning controller, the integrated sensor (single turn) enables absolute positioning.