Introduction
RoboSapien is a toy robot available for less than hundreth euros in shops these days. It is an intriguing robotic platform: a great mechanical project with an amazing number of freedom degrees.
The robot has already been hacked in several ways, and the control bytes are available on-line. Besides, there is no "library" rather than ack avialable on-line. So we decided to develop our own library for controlling an unmodified RoboSapien using a standard palm device running PocketPC 2002-2003. Now you can use your PPC as a brain for the robot, though the robot lacks of sensors indeed. Moreover with PPC we emulate the remote control that receives no feedback from the robot.
Thus we developed a sample application with a UI that allows the user to act as if it is a super-sensor for the robot. In the example, if you indicate that there is an obstacle in front of the robot a routine of avoidance is started.
Notes
Why in Robotics4.NET?
This library will be used by the .NET Compact Framework version of Robotics4.NET framework to program RoboSapien.
Example
In the following example we build a robot object (responsible for communicating with IR) and send few commands. Note that there is no temporization of command flow: the library takes care of it for you! You simply enqueue commands and let the library do the rest.
Show
robot = new RoboSapiens();
robot.EmptyCommandQueue();
robot.SendCommand(Commands.RightArmUp);
robot.SendCommand(Commands.RightArmUp);
robot.SendCommand(Commands.TurnLeft);
robot.SetPause(5000);
robot.SendCommand(Commands.WalkFw);
robot.SendCommand(Commands.RightArmDown);
robot.SendCommand(Commands.RightArmDown);