Ask Your Question
1

PassThrough nodelet with more than one field

asked 2016-02-17 11:56:56 -0600

rastaxe gravatar image

Dear ROS users, I am using the passthrough nodelet (link text) on a point cloud. Setting one field parameter (like in the tutorial) works. What I want to do is to use the nodelet to filter all the fields (x, y, z) at the same time. Since the param "filter_field_name" is only one, how I can achieve that? Thanks!

edit retag flag offensive close merge delete

Comments

Respected member I am very much new to ROS and I exactly want to filter the xyz all at one so have you got any launch file for this? Kindly share it I will be very much thankful to you.

arifzaman gravatar image arifzaman  ( 2021-05-14 12:38:08 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2016-02-18 10:57:42 -0600

Although it doesn't seem to be currently documented on the wiki, the pcl_ros package also has a nodelet available for a crop box filter (feel free to add your own documentation!). You can see the description of the crop box filter here, and the dynamic reconfigure config file for the crop box filter should tell you what parameters to set and what they do.

edit flag offensive delete link more
0

answered 2021-05-14 20:03:35 -0600

arifzaman gravatar image

I have made the launch file running, hope this helps. Here I have (camera/depth/color/points) topic and I am using Intel Real Sense D415, you can edit this according to your topic and simply launch the file.

<launch>

<group ns="/pcl_filters"> <node pkg="nodelet" type="nodelet" name="box_filter_pcl_manager" args="manager" output="screen"/>

<!-- Run a passthrough filter to delimit in x direction -->
<node pkg="nodelet" type="nodelet" name="psx" args="load pcl/PassThrough box_filter_pcl_manager" output="screen">
  <remap from="~input" to="/camera/depth/color/points" />
  <rosparam>
    filter_field_name: x
    filter_limit_min: -.8
    filter_limit_max: 0.5
  </rosparam>
</node>

<!-- Run a passthrough filter to delimit in y direction -->
<node pkg="nodelet" type="nodelet" name="psy" args="load pcl/PassThrough box_filter_pcl_manager" output="screen">
  <remap from="~input" to="/camera/depth/color/points" />
  <rosparam>
    filter_field_name: y
    filter_limit_min: -1.
    filter_limit_max: .3
  </rosparam>
</node>

<!-- Run a passthrough filter to delimit in z direction -->
<node pkg="nodelet" type="nodelet" name="psz" args="load pcl/PassThrough box_filter_pcl_manager" output="screen">
  <remap from="~input" to="/camera/depth/color/points" />
  <rosparam>
    filter_field_name: z
    filter_limit_min: 0.0
    filter_limit_max: 2.0
  </rosparam>
</node>

<node pkg="nodelet" type="nodelet" name="cropbox" args="load pcl/CropBox box_filter_pcl_manager" output="screen">
  <remap from="~input" to="/camera/depth/color/points" />
  <rosparam>
    min_x: -0.75
    max_x: 0.5
    min_y: -0.6
    max_y: 0.1
    min_z: $(arg 0.1)
    max_z: 2.0
  </rosparam>
</node>

</group> </launch>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-17 11:56:56 -0600

Seen: 638 times

Last updated: Feb 18 '16