[Documentation] [TitleIndex] [WordIndex

Starting the Manipulation Pipeline

We have provided a launch file that brings up the complete manipulation pipeline, using the most common options and arguments. In general, starting the pipeline can be as easy as:

export ROBOT=pr2

if you're on an actual PR2, or

export ROBOT=sim

if you're running a simulated PR2 in Gazebo.

Then launch:

roslaunch pr2_tabletop_manipulation_launch pr2_tabletop_manipulation.launch

The default is to launch using a head Kinect. To use the stereo camera instead, pass the additional argument:

stereo:=true

If you want to use slip detection, then add the additional launch argument

use_slip_controllers:=true

This will bring up the manipulation pipeline, along with all the other services and sensor processing that it needs, to the point where it is ready to service pick and place requests. After that, you should be able to run one of the pr2_pick_and_place_demos, or write your own applications which use pick and place functionality.

The Launch Process Explained

The manipulation pipeline is a fairly complex system; to facilitate debugging, or using the pipeline in a particular way to suit your application needs, it is helpful to understand all the sub-components that are getting launched by the one launch file above, as well as the available options.

Note that if you are using the debian package installation of ROS (which is the recommended way) you will not be able to modify this launch file in place. Instead, you can copy it into one of your own packages, edit it to suit your needs, and launch it from there.

Here are all the components of this launch file, explained.

Connection to the Model Database

<!-- client for object database running on remote server at Willow Garage -->
<include file="$(find household_objects_database)/launch/objects_database_remote_client.launch"/>

<!-- alternative option: database server running on a local machine -->
<!--
<param name="/household_objects_database/database_host" 
       value="wgs36"/>
<param name="/household_objects_database/database_port" 
       value="5432"/>
<param name="/household_objects_database/database_user" 
       value="willow"/>
<param name="/household_objects_database/database_pass" 
       value="willow"/>
<param name="/household_objects_database/database_name" 
       value="household_objects-0.2"/>
<node pkg="household_objects_database" name="objects_database_node" 
      type="objects_database_node" respawn="true" output="screen"/>    
-->

The manipulation pipeline is designed to work both on known objects, identified from a database, and novel objects. The details of the object database can be found in the package household_objects_database.

There are three options for using the database:

Manipulation Prerequisites

<!-- manipulation prerequisites -->
<include file="$(find pr2_object_manipulation_launch)/launch/pr2_manipulation_prerequisites.launch"/>

This comprises all the services on the PR2 robot needed for manipulation, including things like IK, motion planning, collision environments, etc. You should rarely have any reason to modify this entry.

Manipulation Pipeline

<!-- manipulation -->
<include file="$(find pr2_object_manipulation_launch)/launch/pr2_manipulation.launch"/>
<param name="/object_manipulator_node/default_database_planner" 
       value="/objects_database_node/database_grasp_planning" />

This is the manipulation functionality itself. The launch file provided for this purpose is pr2_object_manipulation_launch/pr2_manipulation.launch. This file will:

In addition, we are telling the manipulation pipeline what is the name of the service that can be used to retrieve grasps from the database.

Sensor processing for manipulation

  <!-- tabletop perception -->
  <include file="$(find tabletop_object_detector)/launch/tabletop_node.launch"/>
  <param name="/tabletop_node/use_database" value="true"/>
  <param name="/tabletop_node/model_set" value="REDUCED_MODEL_SET" />
  <param name="/tabletop_node/get_model_list_srv" 
         value="/objects_database_node/get_model_list" />       
  <param name="/tabletop_node/get_model_mesh_srv" 
         value="/objects_database_node/get_model_mesh" />       

  <node pkg="tabletop_collision_map_processing"
        name="tabletop_collision_map_processing"         
        type="tabletop_collision_map_processing_node" 
        respawn="false" output="screen"/>
  <param name="tabletop_collision_map_processing/get_model_mesh_srv" 
         value="/objects_database_node/get_model_mesh" />

This will load:

In addition, it will inform these nodes about the names of the service that can be used to retrieve information from the database of models.

If you want to disable the use of the database altogether, you can still rely on the capability of the manipulation pipeline to handle novel objects. To disable the use of the database:

Writing Applications for the Manipulation Pipeline

Note that this process only brings up the manipulation pipeline. To write an application that uses the pipeline, see the next tutorial, Writing a Simple Pick and Place Application. If you just want to make the robot move around and do stuff by teleoperation, look at pr2_interactive_manipulation.


2024-11-16 14:52