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

Get RFQs on Die Casting, Stamping, and Extrusion With Xometry, Your Source for Custom Parts

Get RFQs on Die Casting, Stamping, and Extrusion With Xometry, Your Source for Custom Parts

Xometry is your source for custom parts. Now, in addition to getting instant quotes on 3D Printing, CNC Machining, Sheet Metal, and Injection Molding, customers can create and send RFQs for die casting, stamping, and extrusion work to our nationwide network of pre-vetted manufacturers with just a 2D drawing. You will receive and be able to review responses from qualified shops within 7 days on an advanced web-based RFQ management platform. To learn more go directly to our site to issue and RFQ today. Stop wasting time managing RFQs through email and by phone, and start issuing RFQs at scale and in the cloud.