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

Rittal - Blue e+ IoT module

Rittal - Blue e+ IoT module

Rittal Blue e+ cooling units are currently the most efficient of their kind on the market. Besides being 75 percent more energy-efficient than previous cooling solutions on average, the units also excel in terms of connectivity, safety and handling.   What's more, their IoT interface enables Blue e+ units to link to customer-owned monitoring, energy management and/or superordinate systems via OPC-UA, Profinet, SNMP, Modbus TCP and CANopen, enabling predictive maintenance, data analytics and more.