Documentation Status

Cannot load information on name: pr2_plugs, distro: indigo, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.
Cannot load information on name: pr2_plugs, distro: jade, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.


Running the plugs demo

You need to install the 'pr2 plugs' stack of ROS (see installation instructions). On Ubuntu, this means:

 $ sudo apt-get install ros-fuerte-pr2-plugs

Simulation

Follow the PR2 Plugs Itself In tutorial.

PR2

Before you can run on the PR2 robot, you need a robot-specific calibration in /etc/ros/plugs/hw_calibration.yaml:

plugs_calibration_offset:
  y: 0.0
  z: 0.0

Depending on where the plug hits the outlet, you'll need to in/de-crease the calibration offset:

outlet.png

The plug offsets are reloaded from the parameter server before every plug attempt. After changing the offsets, load the file into the parameter server before retrying:

 $ rosparam load /etc/ros/plugs/hw_calibration.yaml

Now launch the code:

 $ roslaunch pr2_plugs_actions  pr2_base_application.launch
 $ roslaunch pr2_plugs_actions  plug_actions.launch run_sim:=0

To plug in:

  $ rosrun pr2_plugs_actions  app_plugin.py

And to unplug:

  $ rosrun pr2_plugs_actions  app_unplug.py

Report a Bug

Use trac to report bugs or request features. [View active tickets]

Wiki: pr2_plugs (last edited 2012-04-05 23:11:54 by BhaskaraMarthi)