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

OCTOPUZ Robot Programming Software

OCTOPUZ Robot Programming Software

Program and simulate ALL your robots with OCTOPUZ offline software. OCTOPUZ specializes in path sensitive robotic applications such as welding, fabrication, edge following (waterjet, deburring, laser cutting), material removal (2D & 3D machining), and pick & place. Easy to learn, it directly supports paths from your favorite CAM system, has a library of over 15 different types of robot brands, can cut path generation by over 50% and is fully customizable to your unique needs. Program and simulate multiple robots simultaneously in any configuration! Responsive technical assistance from OCTOPUZ before, during and after sale via training, support and cell development make OCTOPUZ the software of choice.