(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

PassThrough filtering

Description: PassThrough filtering

Tutorial Level: BEGINNER


The following launch file starts a nodelet manager together with a PassThrough PCL filter nodelet. The input PointCloud2 topic is set to /scene_pointcloud2.

The default filtering values are set to filter data on the z-axis between 0.01 and 1.5 meters.

  <node pkg="nodelet" type="nodelet" name="pcl_manager" args="manager" output="screen" />

  <!-- Run a passthrough filter to clean NaNs -->
  <node pkg="nodelet" type="nodelet" name="passthrough" args="load pcl/PassThrough pcl_manager" output="screen">
    <remap from="~input" to="/camera/depth/points" />
      filter_field_name: z
      filter_limit_min: 0.01
      filter_limit_max: 1.5
      filter_limit_negative: False

In the first terminal,


Open a new shell, and put following command.

roslaunch openni2_launch openni2.launch
roslaunch pcl_ros_tutorials pass_through_filtering.launch

Then, launch rviz.


Then, you push "Add" button and choose "PointCloud2".

rocon_remocon display view

You can change topic. pic1.png

The following image is passthrough filter. pic2.png

Wiki: pcl_ros/Tutorials/PassThrough filtering (last edited 2015-07-27 08:15:18 by chriswl)