encoder for PR2 in gazebo
According to the tutorial of pr2_controllers :
http://ros.org/wiki/pr2_controllers/Tutorials
I can send a command and use the actionlib to control the controller, like openning the gripper, moving the head, moving the arm... etc. But how can I record or monitor the actual joint value of the controller, which is the function of an encoder, and then maybe plot it out using rxplot or record and replay using rxbag.
I guess that it might be the topic published from gazebo :
/[controller_name]/state
, which is of the type :
pr2_controllers_msgs/JointTrajectoryControllerState
Here is the document :
http://ros.org/doc/fuerte/api/pr2_controllers_msgs/html/msg/JointControllerState.html
I would like to know the meaning of all these entries and which entry I should monitor to do the work as an encoder, or are there any other better approach to do the same thing?
Thanks for any advice~