Robobuilder

(Difference between revisions)
Jump to: navigation, search
m
m (External Links)
Line 71: Line 71:
 
** [http://robosavvy.com/store/product_info.php/products_id/456 Robobuilder Triaxial Acceleration Sensor Module]
 
** [http://robosavvy.com/store/product_info.php/products_id/456 Robobuilder Triaxial Acceleration Sensor Module]
 
** [http://robosavvy.com/forum/viewtopic.php?t=4156 Forum post about this Ruby project]
 
** [http://robosavvy.com/forum/viewtopic.php?t=4156 Forum post about this Ruby project]
 +
* [http://www.robodance.com/ Robodance] (free software to control toy robots)
  
 
{{Addthis}}
 
{{Addthis}}

Revision as of 22:52, 3 October 2009

Assembled Robobuilder "Huno"
One can control the Robobuilder from within an interactive Ruby session (also available as 15.5 MByte DivX3 video and available on Youtube)
The Robobuilder Kit contains components for assembling a humanoid robot

Working.gif

Contents

Ruby Examples

Using the RBC controller

New.gif You can download the Ruby-extension for controlling the Robobuilder using a GNU+Linux PC here:

robobuilder-0.2.1.tar.bz2

Here is a small example program which makes the robot get up if it's lying on its back or its front.

#!/usr/bin/env ruby
require 'robobuilder'
require 'matrix'
class Vector
  def norm
    Math.sqrt inner_product( self )
  end
end
robot = Robobuilder.new '/dev/ttyUSB0'
puts "Robobuilder"
puts "Serial number: #{robot.serial_number}"
acceleration = Vector[ *robot.accelerometer ]
if acceleration.inner_product( Vector[ 0, 0, 1 ] ) >
    acceleration.norm * 0.97
  robot.basic
  robot.a
elsif acceleration.inner_product( Vector[ 0, 0, 1 ] ) <
    -acceleration.norm * 0.97
  robot.basic
  robot.b
end
acceleration = Vector[ *robot.accelerometer ]
if acceleration.inner_product( Vector[ 0, 1, 0 ] ) >
    acceleration.norm * 0.97
  robot.run 1
end
robot.close

Todo

  • Implement various commands of direct mode
  • Implement commands for uploading motion sequences
  • Add support for Bluetooth communication
  • Port serial communication module to Windows

External Links

Bookmark and Share

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox