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)

Records 1 to 1 of 1

Featured Product

KINGSTAR Soft Motion - Replace Your Motion Control Hardware with Precision-Performance Software in Half the Cost & Time

KINGSTAR Soft Motion - Replace Your Motion Control Hardware with Precision-Performance Software in Half the Cost & Time

KINGSTAR Soft Motion is an open and standards-based, real-time software-only solution that streamlines motion control automation. Soft Motion runs directly on the 64-bit PC, uses the NIC card for I/O, and uses the powerful EtherCAT protocol to free you from the shackles of proprietary and costly hardware. With Soft Motion, motion control engineers can design, develop and integrate real-time PC-based machine controllers in a "plug-and-play" environment for consolidated, inexpensive and scalable motion control.