Skip to content

Commit 7d0def4

Browse files
committed
Improve: ros2-ified perception tutorial
1 parent 38a6ea2 commit 7d0def4

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

doc/examples/perception_pipeline/perception_pipeline_tutorial.rst

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
:moveit1:
2-
3-
..
4-
Once updated for MoveIt 2, remove all lines above title (including this comment and :moveit1: tag)
5-
61
Perception Pipeline Tutorial
72
============================
83

@@ -30,7 +25,7 @@ To use the Occupancy Map Updater, it is only necessary to set the appropriate pa
3025
YAML Configuration file (Point Cloud)
3126
+++++++++++++++++++++++++++++++++++++
3227

33-
We will have to generate a YAML configuration file for configuring the 3D sensors. Please see :panda_codedir:`this example file<config/sensors_kinect_pointcloud.yaml>` for processing point clouds.
28+
We will have to generate a YAML configuration file for configuring the 3D sensors. Please see :panda_codedir:`this example file <config/sensors_kinect_pointcloud.yaml>` for processing point clouds.
3429

3530
Save this file in the config folder in the robot's moveit_config package with name "sensors_kinect_pointcloud.yaml": ::
3631

@@ -111,9 +106,9 @@ Update the launch file
111106

112107
Add the YAML file to the launch script
113108
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114-
You will now need to update the *sensor_manager.launch* file in the "launch" directory of your panda_moveit_config directory with this sensor information (this file is auto-generated by the Setup Assistant but is empty). You will need to add the following line into that file to configure the set of sensor sources for MoveIt to use: ::
109+
You will now need to create a *sensor_manager.launch* file in the "launch" directory of your panda_moveit_config directory (e.g. `on github <https://github.com/ros-planning/panda_moveit_config/blob/rolling-devel/launch/sensor_manager.launch.xml>`_) with this sensor information. You will need to add the following line into that file to configure the set of sensor sources for MoveIt to use: ::
115110

116-
<rosparam command="load" file="$(find panda_moveit_config)/config/sensors_kinect_pointcloud.yaml" />
111+
<param from="$(find panda_moveit_config)/config/sensors_kinect_pointcloud.yaml" />
117112

118113
If you are using depthmap change the name of the yaml file to ``sensors_kinect_depthmap.yaml``.
119114
Note that you will need to input the path to the right file you have created above.
@@ -143,7 +138,7 @@ Running the Interface
143138
+++++++++++++++++++++
144139
Roslaunch the launch file to run the code directly from moveit_tutorials: ::
145140

146-
roslaunch moveit_tutorials obstacle_avoidance_demo.launch
141+
ros2 launch moveit_tutorials obstacle_avoidance_demo.launch
147142

148143
You should see something like the image shown at the beginning of this tutorial.
149144
If not, you may have run into a `known OpenGL rendering issue <http://wiki.ros.org/rviz/Troubleshooting>`_. To work around the issue, you can force CPU-based rendering with this command:

0 commit comments

Comments
 (0)