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

Midwest Motion Products, Inc. (MMP) - Leadership in Engineering

Midwest Motion Products, Inc. (MMP) - Leadership in Engineering

Midwest Motion Products, Inc. (MMP), is a well-established, healthy, & growing Family Owned Business, founded in 2001. MMP specializes in cost-effective standard DC Gearmotors, Motors, Controls, and ancillary equipment. Known world-wide for our "Lightning Fast" delivery capabilities, you can have a Standard Planetary or Right Angled DC Gearmotor BUILT and SHIPPED, often on the very same day you call. Offering Brushed and Brushless designs, with winding voltages ranging from 12 VDC to 120 VDC, we can deliver your "Robust & Reliable" samples within HOURS, instead of weeks, or even months.