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

How to grasp a cup by PR2 on simulations?

asked 2012-01-11 00:39:37 -0600

sam gravatar image

updated 2014-11-22 17:05:11 -0600

ngrennan gravatar image

I want to run some complicated scenarios on simulations,such as pr2 grasp a cup or similar scenarios.

Where can I start?

Thank you~

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-01-12 04:54:30 -0600

hsiao gravatar image

In electric, you can use pr2_interactive_manipulation: .
Use 'roslaunch pr2_interactive_manipulation pr2_manipulation_gazebo.launch' to start a sim of a robot with a can on a table in front of it.
Then run 'roslaunch pr2_interactive_manipulation pr2_interactive_manipulation_robot.launch stereo:=true' to start up all the manipulation stacks and such, and 'roslaunch pr2_interactive_manipulation pr2_interactive_manipulation_desktop.launch stereo:=true' to start rviz with relevant topics and such.

The documentation on how to use it is a bit out of date; look at this wiki page for a more up-to-date description:

For coding your own autonomous stuff, look at for C++ and for python.

edit flag offensive delete link more


Did the pr2_manipulation_gazebo.launch file move? It doesn't appear to be in pr2_interactive_manipulation anymore. I'm running electric.

David Lu gravatar image David Lu  ( 2012-04-02 23:03:23 -0600 )edit

oops, didn't comment in the right place. See my post below.

hsiao gravatar image hsiao  ( 2012-04-03 08:19:01 -0600 )edit

answered 2012-04-03 08:17:50 -0600

hsiao gravatar image

Ergh. You probably shouldn't be using trunk right now--trunk is now trying to be Fuerte-compatible, except a lot of stuff is not working yet.

That launch has been moved to the package manipulation_worlds, which now has a whole selection of interesting worlds for manipulating stuff in Gazebo in Electric: pr2_table_object.launch is equivalent to the old pr2_manipulation_gazebo.launch.

edit flag offensive delete link more

answered 2012-01-11 09:05:00 -0600

You can try this one:

though I'm not sure if it will work for electric (the documentation is for cturtle).

edit flag offensive delete link more

Question Tools



Asked: 2012-01-11 00:39:37 -0600

Seen: 1,362 times

Last updated: Apr 03 '12