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)

Featured Product

Elevate your manufacturing processes with data-driven insights

Elevate your manufacturing processes with data-driven insights

Join Emerson and discover how embracing a Floor to Cloud™ strategy can revolutionize your operations. This strategy integrates on-site devices and technologies with cloud analytics, providing the insights needed to enhance manufacturing efficiency, maximize workforce potential, and achieve sustainability targets. Our team of experts have a commitment to innovation and look forward to discussing your challenges to develop a customized solution.