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

Destaco’s PNEUMATIC PARALLEL GRIPPERS - RTH & RDH

Destaco's PNEUMATIC PARALLEL GRIPPERS - RTH & RDH

Destaco's Robohand RDH/RTH Series 2 and 3 jaw parallel grippers have a shielded design that deflects chips and other particulate for a more reliable, repeatable operation in part gripping applications ranging from the small and lightweight, to the large and heavy. RDH Series of Rugged, Multi-Purpose Parallel Grippers for Heavy Parts - Designed for high particulate application environments, automotive engine block, gantry systems, and ideal for heavy part gripping The series includes eight sizes for small lightweight to large/heavy part gripping. RTH Series of Powerful, Multi-Purpose Parallel Grippers for Heavy Parts - Designed for large round shaped parts, automotive engine block and gantry systems, and heavy part gripping. They're available in eight sizes for small lightweight to large and heavy part gripping.