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

REIKU's Cable Saverâ„¢ - The Most Versatile Modular Robotic Cable Management Solution

REIKU's Cable Saverâ„¢ - The Most Versatile Modular Robotic Cable Management Solution

REIKU's Cable Saverâ„¢ Solution eliminates downtime, loss of revenue, expensive cable and hose replacement costs, maintenance labor costs. It's available in three sizes 36, 52 and 70 mm. All of the robots cables and hoses are protected when routed through the Cable Saverâ„¢ corrugated tubing.The Cable Saverâ„¢ uses a spring retraction system housed inside the Energy Tubeâ„¢ to keep this service loop out of harms way in safe location at the rear of the Robot when not required. The Cable Saverâ„¢ is a COMPLETE solution for any make or model of robot. It installs quickly-on either side of the robot and has been tested to resist over 15 million repetitive cycles. REIKU is committed to providing the most modular, effective options for ensuring your robotic components operate without downtime due to cable management. www.CableSaver.com