-
Notifications
You must be signed in to change notification settings - Fork 195
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 voxel_min_points param for voxel filter #160
Add voxel_min_points param for voxel filter #160
Conversation
LGTM except making the default for the configuration files (and readme) |
4358bf8
to
90d6eb3
Compare
@SteveMacenski This PR is ready for review along with #161 (for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes - looks good overall
README.md
Outdated
@@ -116,6 +116,7 @@ rgbd_obstacle_layer: | |||
inf_is_valid: false #default false, for laser scans | |||
clear_after_reading: true #default false, clear the buffer after the layer gets readings from it | |||
voxel_filter: true #default off, apply voxel filter to sensor, recommend on | |||
voxel_min_points: 10 #default 0, minimum points per voxel for voxel filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to 0
.
src/measurement_buffer.cpp
Outdated
@@ -160,6 +161,7 @@ void MeasurementBuffer::BufferROSCloud(const sensor_msgs::PointCloud2& cloud) | |||
sor.setLeafSize ((float)_voxel_size, | |||
(float)_voxel_size, | |||
(float)_voxel_size); | |||
sor.setMinimumPointsNumberPerVoxel((unsigned int) _voxel_min_points); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use static_cast<unsigned int>(_voxel_min_points);
Both PRs updated, thanks! |
Thanks for your contribution! |
This feature prevents "ghost points" from noise generated by depth cameras.