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 binning and box masking. #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jgoppert
Copy link

@jgoppert jgoppert commented Nov 16, 2023

Adds binning and box filter. The binning makes this compliant with slam_toolbox expectations. Instead of sending as many sample as are available, this sets a fixed number of angular bins and fills them based on the samples.

The box filter is similar to the angular mask, but can be used to mask out regions on your robot more precisely than angular masking. If you have a narrow mast for instance, box binning will allow you to ignore it based on x, y position instead of based on angle. This is more robust and you get to keep more of the lidar scan. We also tried using the box filter from ros2_laser_filters, but the cpu load was very high compared to this implementation.

Signed-off-by: James Goppert <[email protected]>
Co-authored-by: Benjamin Perseghetti <[email protected]>
@bperseghetti
Copy link
Contributor

bperseghetti commented Nov 16, 2023

@mingdonghu @ldrobotsensor this also closes several issues and makes it work nicely in ROS 2:
Closes #4
Closes #7
Closes #11

Signed-off-by: James Goppert <[email protected]>
@Myzhar
Copy link

Myzhar commented Feb 5, 2024

Will this fix be merged?

@bperseghetti
Copy link
Contributor

Will this fix be merged?

Sure would be nice if it could get merged!

I don't think the two owners of this repository have been on github for a while (looking at their profiles for their commit histories).
Feel free to also just take the branch it's on, we have no plan of getting rid of that branch anytime soon:

https://github.com/rudislabs/ldlidar_stl_ros2/tree/pr-binning

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.

4 participants