This demo starts up the robot in its own thread, then calls a series of the motion commands methods in ArRobot.
Note that if you want to stop direct motion commands and let ArActions take over, you should call ArRobot::clearDirectMotion(). See the section on motion commands and actions for details. Also note how it locks the robot before doing anything with the robot, then unlocks it when done, this is vital for threaded code.