Difference between revisions of "Fakebot"

From Wiki for iCub and Friends
Jump to: navigation, search
Line 15: Line 15:
 
* Read the encoder feedback (the position of the head). This information is available from the port "/fakebot/motor/status:o"
 
* Read the encoder feedback (the position of the head). This information is available from the port "/fakebot/motor/status:o"
 
Try this:
 
Try this:
   yarp read /USERNAME/reader /fakebot/motor/status:o
+
   yarp read /USERNAME/reader /fakebot/motor/state:o
  
 
* [[Controlling the fakebot from code]]
 
* [[Controlling the fakebot from code]]

Revision as of 13:10, 21 February 2007

  • There are images available at port "/fakebot/camera". They show a ship moving back and forth. Try:
 yarpview /USERNAME/view
 yarp connect /fakebot/camera /USERNAME/view
  • The view is from a fake pan/tilt head. You can move the camera by sending messages to "/fakebot/motor/rpc:i". Try:
 yarp rpc /fakebot/motor/rpc:i

and type:

 help

to see what you can do. Useful commands are:

 set pos 0 100

where the first number can be 0 or 1 (for x and y position), and the second number is the actual position.

Remember other people in the class may be controlling the fakebot at the same time, so don't be surprised if it moves without you saying.

  • Read the encoder feedback (the position of the head). This information is available from the port "/fakebot/motor/status:o"

Try this:

  yarp read /USERNAME/reader /fakebot/motor/state:o