Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example launch & config for ease of use #18

Merged
merged 8 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions examples/body_filter_node.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<launch>
<!-- Prerequisite: sensor_filters -->
<!-- https://github.com/ctu-vras/sensor_filters -->
<node name = "laser_filter"
pkg="sensor_filters"
type = "pointcloud2_filter_chain"
output = "screen">

<rosparam command="load" file="$(dirname)/vlp16_params.yaml" />
<remap from="~input" to="velodyne_points" />
<remap from="~output" to="velodyne_points_filtered" />
</node>

</launch>

29 changes: 29 additions & 0 deletions examples/vlp16_params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is an example filter config for a commercial robot that use Velodyne VLP-16.
cloud_filter_chain:
# Only containment filtering
- name: robot_body_filter_containment
type: robot_body_filter/RobotBodyFilterPointCloud2
params:
debug/pcl/clip: false
debug/pcl/inside: false
debug/pcl/shadow: false
sensor/min_distance: 0.05
sensor/max_distance: 10
# For more information of how to choose the fixed frame and configure point_by_point, see the discussion at https://github.com/peci1/robot_body_filter/pull/18#discussion_r780655811
sensor/point_by_point: true
frames/fixed: odom
frames/sensor: lidar_frame
frames/filtering: lidar_frame
frames/output: lidar_frame
body_model/inflation/scale: 1.0
body_model/inflation/padding: 0.03
body_model/robot_description_param: robot_description
filter/do_clipping: true
filter/do_contains_test: true
filter/do_shadow_test: false
only_links:
- base_link
- gps_link
- imu_link
- lidar_mount_link
- top