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

Thermal Seal Inspection for Improved Quality and Efficiency

Thermal Seal Inspection for Improved Quality and Efficiency

MoviTHERM's Thermal Seal Inspection (TSI) solution provides precise and reliable detection of defects in a variety of packaging types, including pouches, bags, blister packs, bottle caps, and more. By detecting defects in your packages, the TSI solution helps increase efficiency in your production line and ensures top-quality packaging is delivered to your customers every time. With state-of-the-art technology and an experienced team, MoviTHERM is dedicated to delivering accurate inspection solutions and peace of mind to its clients. Contact MoviTHERM today to learn more about their thermal seal inspection solution.