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

MarkLogic - How to Win the New Industrial Revolution

MarkLogic - How to Win the New Industrial Revolution

Use Data to Deliver Efficiency, Reduce Risk, and Create Better Products. Disruptive technologies and market changes are transforming the manufacturing industry, requiring a new focus on optimizing use of data and information. It all adds up to a new industrial revolution called Industry 4.0. Organizations who want to realize the potential of this revolution need to "Industrialize their data," making it a core asset to deliver better products and customer service, navigate complex business environments, and transform for the future. MarkLogic customers are delivering on this vision for data with a proven architectural pattern called the Operational Data Hub that simplifies the integration of data along the digital thread to power operational and analytic use cases across the enterprise.