ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how to convert the world coordination to robot coodination in PR2 ros

asked 2012-02-26 14:03:15 -0500

zhenli gravatar image

updated 2014-11-22 17:05:41 -0500

ngrennan gravatar image

I am try to control pr2 simulator to grasp some object on the table. The robot is fixed as it in the beginning, now I want to know how to convert the object coordination to robot coordination, then we can use Cartesian controller to drive the right arm to reach the object , and grasp the object. Normally we know the object coordination on the table, so how we set the target for arm Cartesian controller coordination to reach the object. Also how to keep the orientation of the gripper vertical to the table, thus make the grasp easily. Besides, is there an documentation for the coordination of pr2 simulator and pr2 arm.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-26 21:21:42 -0500

Lorenz gravatar image

I guess TF is the library you are looking for. Tutorials here. It is the ROS way to transform between different coordinate frames. For instance, if you have the pose of your object as a PoseStamped (that's a pose that also contains the coordinate frame it is relative to and a time stamp) you can use TF to transform the object's pose to the robot's base. I actually believe that the cartesian arm controller internally also uses TF to transform poses into the correct frame, i.e. passing it any valid PoseStamped should work.

If you need more complex arm motions, I suggest that you have a look at move_arm. It provides a pretty powerful interface for arm navigation. You can find tutorials here and here.

edit flag offensive delete link more

Question Tools


Asked: 2012-02-26 14:03:15 -0500

Seen: 1,432 times

Last updated: Feb 26 '12