Robobuilder

From MMVLWiki
(Difference between revisions)
Jump to: navigation, search
m
m (Using the RBC controller)
 
(42 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{|align=right
 
{|align=right
|-
 
|[[Image:Robobuilder-kit.jpg|thumb|240px|The Robobuilder Kit contains components for assembling a humanoid robot]]
 
 
|-
 
|-
 
|[[Image:Robobuilder-huno.jpg|thumb|240px|Assembled Robobuilder "Huno"]]
 
|[[Image:Robobuilder-huno.jpg|thumb|240px|Assembled Robobuilder "Huno"]]
 +
|-
 +
|<html>
 +
  <div class="thumb tright"><div style="width:320px;">
 +
    <object type="application/x-shockwave-flash" data="http://vision.eng.shu.ac.uk/jan/flv/flvplayer.swf" width="320" height="240">
 +
      <param name="flashvars"
 +
            value="file=http://vision.eng.shu.ac.uk/jan/flv/robobuilder1.flv&amp;image=http://vision.eng.shu.ac.uk/jan/flv/robobuilder1.jpg&amp;searchbar=false&amp;displayheight=240" />
 +
      <param name="movie" value="http://vision.eng.shu.ac.uk/jan/flv/flvplayer.swf" />
 +
      <param name="allowfullscreen" value="true" />
 +
    </object>
 +
    <div class="thumbcaption">One can control the Robobuilder from within an interactive Ruby session (also available as <a href="http://vision.eng.shu.ac.uk/jan/robobuilder1.avi">15.5 MByte DivX3 video</a> and available on <a href="http://www.youtube.com/watch?v=3w34KPsjQlc">Youtube</a>)</div>
 +
  </div></div>
 +
</html>
 +
|-
 +
|[[Image:Robobuilder-kit.jpg|thumb|320px|The Robobuilder Kit contains components for assembling a humanoid robot]]
 
|-
 
|-
 
|}
 
|}
 +
=Robobuilder=
 +
Currently all our Robobuilders are in disrepair (plastic gears of multiple servos are broken). We are trying to order [http://robosavvy.com/store/product_info.php/products_id/524 metal gear] replacements. According to [http://groups.csail.mit.edu/lbr/hrg/1995/mattw_ms_thesis.pdf Mark Williamson's thesis] (MIT) ideally one should replace the rigid servos with ''series elastic actuators'' to avoid the large shock loads which result from unexpected collisions which can cause the gear teeth to break. However it may be better to use a sliding clutch since introducing elasticity will limit the dynamics of the system.
 +
 +
'''Update:''' A temporary solution might be to lower the ''overload'' parameter of the wCK servos. Furthermore it is possible to specify an upper and lower limit for the joint angle.
 +
 
[[Image:Working.gif]]
 
[[Image:Working.gif]]
 +
==Capabilities==
 +
* main body
 +
** AVR microcontroller
 +
*** motion programs
 +
*** direct control
 +
** 16 servo controllers, serial bus
 +
*** self-running mode
 +
*** interpolation + closed-loop control
 +
** LiPo akku, DC power connector
 +
* sensors
 +
** 3-axis accelerometer (add-on)
 +
** ultrasound distance sensor
 +
* communication
 +
** RS232 interface
 +
** Bluetooth interface (add-on)
 +
 
=Ruby Examples=
 
=Ruby Examples=
 
==Using the RBC controller==
 
==Using the RBC controller==
[[Image:New.gif]] You can download the Ruby-extension for controlling the Robobuilder here: [http://vision.eng.shu.ac.uk/jan/robobuilder-0.2.tar.bz2 robobuilder-0.2.tar.bz2]
+
You can get the Ruby-extension for controlling the Robobuilder with a GNU+Linux PC here:
 +
 
 +
'''[https://github.com/wedesoft/robobuilder github.com/wedesoft/robobuilder]'''
  
 
Here is a small example program which makes the robot get up if it's lying on its back or its front.
 
Here is a small example program which makes the robot get up if it's lying on its back or its front.
Line 25: Line 60:
 
puts "Serial number: #{robot.serial_number}"
 
puts "Serial number: #{robot.serial_number}"
 
acceleration = Vector[ *robot.accelerometer ]
 
acceleration = Vector[ *robot.accelerometer ]
if acceleration.inner_product( Vector[ 0, 0, 1 ] ) > acceleration.norm / 2
+
if acceleration.inner_product( Vector[ 0, 0, 1 ] ) >
 +
    acceleration.norm * 0.97
 
   robot.basic
 
   robot.basic
 
   robot.a
 
   robot.a
elsif acceleration.inner_product( Vector[ 0, 0, 1 ] ) < -acceleration.norm / 2
+
elsif acceleration.inner_product( Vector[ 0, 0, 1 ] ) <
 +
    -acceleration.norm * 0.97
 
   robot.basic
 
   robot.basic
 
   robot.b
 
   robot.b
 
end
 
end
 
acceleration = Vector[ *robot.accelerometer ]
 
acceleration = Vector[ *robot.accelerometer ]
if acceleration.inner_product( Vector[ 0, 1, 0 ] ) > acceleration.norm / 2
+
if acceleration.inner_product( Vector[ 0, 1, 0 ] ) >
 +
    acceleration.norm * 0.97
 
   robot.run 1
 
   robot.run 1
 
end
 
end
 
robot.close
 
robot.close
 
</pre>
 
</pre>
 +
 +
=Todo=
 +
* Implement various commands of ''direct mode''
 +
* Implement commands for uploading motion sequences and action sequences
 +
* Add support for Bluetooth communication
 +
* Port wired and wireless serial communication to Windows
 +
* Computer vision feedback using (external) webcam
  
 
=External Links=
 
=External Links=
Line 43: Line 88:
 
* [http://www.robosavvy.com/ Robosavvy] (UK distributor)
 
* [http://www.robosavvy.com/ Robosavvy] (UK distributor)
 
** [http://robosavvy.com/store/product_info.php/products_id/445 Robobuilder 5710K Humanoid Kit]
 
** [http://robosavvy.com/store/product_info.php/products_id/445 Robobuilder 5710K Humanoid Kit]
** [http://robosavvy.com/store/product_info.php/products_id/517 Robobuilder Bluetooth Communication Module]
+
** [http://robosavvy.com/store/product_info.php/products_id/517 Robobuilder Bluetooth Communication Module] ([http://robosavvy.com/RoboSavvyPages/Robobuilder/Robobuilder_BluetoothInstallationInstructions.pdf installation instructions])
** [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/RoboSavvyPages/Robobuilder/HowToEquip_AccelerationSensor.pdf installation instructions])
 +
** [http://robosavvy.com/store/product_info.php/products_id/524 Metal gear replacement (gears 1, 2, and 3)] [http://robosavvy.com/store/product_info.php/products_id/529 (gear 4)]
 +
** [http://robosavvy.com/store/product_info.php/products_id/609 Robobuilder Metal Joints Set]
 +
** [http://robosavvy.com/RoboSavvyPages/Robobuilder/robobuilder-creator-users-manual.pdf Robobuilder Creator users manual]
 +
** [http://robosavvy.com/RoboSavvyPages/Robobuilder/RBC_over_Serial_Protocol_v1.13.pdf Serial protocol to communicate with Robobuilder controller]
 +
** [http://robosavvy.com/Builders/limor/RoboBuilder_2nd_C_Source.zip Source code of Robobuilder controller]
 
** [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://robosavvy.com/forum/viewtopic.php?p=19648#19648 RoboBuilder enhanced with RoBoard] (capable of running GNU/Linux)
 +
* [http://www.robodance.com/ Robodance] (free software to control toy robots)
 +
* [http://cafe.daum.net/robobuilder Robobuilder base dance video]
 +
* [http://www.youtube.com/watch?v=Fi7aD5AUu0s Video of Robobuilder at Roboworld 2008 (Seoul)]
 +
* [http://lasa.epfl.ch/ HOAP at the EPFL Laboratoire d'Algorithmes et Systemes d'Apprentissage]
 +
* [http://groups.csail.mit.edu/lbr/hrg/1995/mattw_ms_thesis.pdf Matt Williamson: Masters thesis on series elastic actuators]
 +
* [http://www.jo-zero.com/ JO-ZERO robot (infrared remote control)]
  
 
{{Addthis}}
 
{{Addthis}}

Latest revision as of 00:05, 17 July 2011

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

Contents

[edit] Robobuilder

Currently all our Robobuilders are in disrepair (plastic gears of multiple servos are broken). We are trying to order metal gear replacements. According to Mark Williamson's thesis (MIT) ideally one should replace the rigid servos with series elastic actuators to avoid the large shock loads which result from unexpected collisions which can cause the gear teeth to break. However it may be better to use a sliding clutch since introducing elasticity will limit the dynamics of the system.

Update: A temporary solution might be to lower the overload parameter of the wCK servos. Furthermore it is possible to specify an upper and lower limit for the joint angle.

Working.gif

[edit] Capabilities

  • main body
    • AVR microcontroller
      • motion programs
      • direct control
    • 16 servo controllers, serial bus
      • self-running mode
      • interpolation + closed-loop control
    • LiPo akku, DC power connector
  • sensors
    • 3-axis accelerometer (add-on)
    • ultrasound distance sensor
  • communication
    • RS232 interface
    • Bluetooth interface (add-on)

[edit] Ruby Examples

[edit] Using the RBC controller

You can get the Ruby-extension for controlling the Robobuilder with a GNU+Linux PC here:

github.com/wedesoft/robobuilder

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

[edit] Todo

  • Implement various commands of direct mode
  • Implement commands for uploading motion sequences and action sequences
  • Add support for Bluetooth communication
  • Port wired and wireless serial communication to Windows
  • Computer vision feedback using (external) webcam

[edit] External Links

Bookmark and Share

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox