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 voxel_min_points param for voxel filter #160

Merged
merged 3 commits into from
Mar 5, 2020

Conversation

akiroz
Copy link

@akiroz akiroz commented Mar 5, 2020

This feature prevents "ghost points" from noise generated by depth cameras.

@SteveMacenski
Copy link
Owner

SteveMacenski commented Mar 5, 2020

LGTM except making the default for the configuration files (and readme) 0 so there's no change in default behavior and the param files contain all the dials, please also make that update to the eloquent-devel branch as well so its reflected in ROS2

@akiroz akiroz force-pushed the melodic-devel branch 2 times, most recently from 4358bf8 to 90d6eb3 Compare March 5, 2020 03:59
@akiroz
Copy link
Author

akiroz commented Mar 5, 2020

@SteveMacenski This PR is ready for review along with #161 (for eloquent-devel)

Copy link
Owner

@SteveMacenski SteveMacenski left a 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
Copy link
Owner

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.

@@ -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);
Copy link
Owner

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);

@akiroz
Copy link
Author

akiroz commented Mar 5, 2020

Both PRs updated, thanks!

@SteveMacenski SteveMacenski merged commit f7384d7 into SteveMacenski:melodic-devel Mar 5, 2020
@SteveMacenski
Copy link
Owner

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants