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

Strain Wave Gearheads by maxon - Highly precise, compact, and efficient.

Strain Wave Gearheads by maxon - Highly precise, compact, and efficient.

Strain wave gearheads are ideal for use in applications requiring precision motion control and high torque transmission in a compact design. maxon strain wave gearheads are a specialized type of gearhead where precision and compact design are crucial. This type of gearhead is often used in applications in a confined space. With their advanced gear tooth design, maxon's strain wave gearheads provide high efficiency and good back drivability. Typical applications include: Robotics, Aerospace, Medical technology and Optical systems .