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

Midwest Motion Products is a leading provider of robust and reliable Motion Control Products.

Midwest Motion Products is a leading provider of robust and reliable Motion Control Products.

MMP specializes in supplying high-quality Brushed & Brushless DC Motors & Gearmotors for Robotics and Automation Equipment with a wide range of motor windings and gear ratios. With an impressive track record of more than 8,000 released DC Gearmotors designs and over 2,000,000 individual part numbers, we are renowned for our ability to handle large-scale orders. Due to our huge on-hand inventory, we are also well known for lightning-fast delivery of our standard products. We take pride in our dedicated customer service and our team of knowledgeable sales and engineering experts who are ready to assist you with custom design solutions tailored to your specific application. Additionally, we also offer a wide range of complimentary products, such as DC Motor Controls, DC Linear Actuators, AC-DC power Supplies, and DC Servo Amplifiers and others.