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

Mosrac -  Built Around Your Needs

Mosrac - Built Around Your Needs

At Mosrac Motor Co., Ltd., we know every application is different. That's why we provide fully custom frameless motor solutions tailored to your needs—covering torque, voltage, size, structure, and materials. From coils and magnets to lead wires, our engineers work with you to design the right motor to fit our exact needs. With many models and strong customization capabilities, Mosrac is a reliable partner for high-performance motors tailored to your application.