• Diff for "pr2_plugs"
Differences between revisions 5 and 6
Revision 5 as of 2010-02-25 22:03:05
Size: 210
Editor: MeloneeWise
Comment:
Revision 6 as of 2010-06-29 18:21:22
Size: 1098
Editor: wim
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
== Running the plugs demo ==

You need to install the 'pr2all' variant of ROS (see [[ROS/Installation|installation instructions]]). On Ubuntu, this means:
{{{
 $ sudo apt-get install ros-cturtle-pr2all
}}}

'''Simulation'''
Check out the simulator environment:
{{{
  $ svn co https://code.ros.org/svn/wg-ros-pkg/trunk/stacks/wg_robots_gazebo/pr2_plugs_gazebo_demo
}}}
Build this code, and run it:
{{{
  $ roslaunch pr2_plugs_gazebo_demo pr2_plugs_test.launch
}}}


'''PR2'''
Before you can run on the PR2 robot, you need a robot-specific calibration in /etc/ros/plugs/calibration.yaml:
{{{
  plug_position_x: 0.0
  plug_position_z: 0.0
}}}

Now run the code to plug in:
{{{
 $ roslaunch pr2_plugs_executive plugin_app_recovery.launch
 $ rosrun pr2_plugs_executive app_plugin.py
}}}
And to unplug:
{{{
  $ rosrun pr2_plugs_executive app_unplug.py
}}}

Only released in EOL distros:  

pr2_plugs: checkerboard_pose_estimation | outlet_pose_estimation | pr2_image_snapshot_recorder | pr2_plugs_actions | pr2_plugs_common | pr2_plugs_msgs | stereo_wall_detection | visual_pose_estimation

Package Summary

pr2_plugs metapackage. The pr2_plugs metapackage groups all of the functionality needed for the pr2 to plug itself into the wall


Running the plugs demo

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

 $ sudo apt-get install ros-cturtle-pr2all

Simulation Check out the simulator environment:

  $ svn co  https://code.ros.org/svn/wg-ros-pkg/trunk/stacks/wg_robots_gazebo/pr2_plugs_gazebo_demo

Build this code, and run it:

  $ roslaunch pr2_plugs_gazebo_demo pr2_plugs_test.launch

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

  plug_position_x: 0.0
  plug_position_z: 0.0

Now run the code to plug in:

 $ roslaunch pr2_plugs_executive  plugin_app_recovery.launch
 $ rosrun pr2_plugs_executive  app_plugin.py

And to unplug:

  $ rosrun pr2_plugs_executive  app_unplug.py

Report a Bug

<<TracLink(wg-ros-pkg plugs)>>

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