Introducing the Robotic-arm gem

This gem controls the USB OWI Robotic arm.

Prequisites

Example codes

require 'robotic-arm'

ra = RoboticArm.new
ra.led.on
ra.shoulder.up 0.5
ra.elbow.up 0.5
ra.wrist.up 0.3
ra.base.left 0.7
ra.gripper.close 0.2
ra.gripper.open 0.4
ra.led.off
ra.stop

Note: The user must have permission to use the libusb device. You can run the above code as root.

Resources

Tags:
Source:
2018hrs.txt
Published:
29-01-2013 20:18