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

CMES - AI-Powered 3D Robot Vision

CMES - AI-Powered 3D Robot Vision

Powered by AI, CMES Robotics enables 3D vision for factory robots. CMES AI vision software enables robots to recognize unstructured, flexible, or deformed objects, pick them up, and loading and unloading. CMES Vision software has been deployed worldwide for random palletization and depalletization along with void filling applications. CMES Robotics automates your warehouse, logistics, and supply chain. For more information, please visit: cmesrobotics.com or email info@cmesrobotics.com.