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

Setting the resolution of the occupancy grid #2273

Merged
merged 1 commit into from
Apr 4, 2018
Merged

Setting the resolution of the occupancy grid #2273

merged 1 commit into from
Apr 4, 2018

Conversation

mathue
Copy link
Contributor

@mathue mathue commented Apr 4, 2018

If the resolution of a point cloud is in millimeter instead of meter, the resolution of the occupancy grid must be set to ~10. Otherwise, the index at line 348 in hv_go.hpp (int idx = pos_z * size_x * size_y + pos_y * size_x + pos_x;) would overflow and produce a segmentation fault. Nevertheless, the occupancy grid would have way too many entries.

If the resolution of a point cloud is in millimeter instead of meter, the resolution of the occupancy grid must be set to ~10. Otherwise, the index at line 348 in hv_go.hpp (int idx = pos_z * size_x * size_y + pos_y * size_x + pos_x;) would overflow and produce a segmentation fault. Nevertheless, the occupancy grid would have way too many entries.
@taketwo taketwo added this to the pcl-1.9.0 milestone Apr 4, 2018
@taketwo taketwo merged commit f8826e3 into PointCloudLibrary:master Apr 4, 2018
@mathue mathue deleted the patch-1 branch April 5, 2018 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants