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

Added support for laserscanners that spin clockwise #102

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

teundeplanque
Copy link

@teundeplanque teundeplanque commented Jan 28, 2021

Added support for laserscanners that spin clockwise to the angular bounds filter (i.e. angle increment is negative)

Copy link
Contributor

@jonbinney jonbinney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Seems unlikely to break existing cases, and adds important functionality.

current_angle += input_scan.angle_increment;
}
}
else{ //the laserscanner turns clockwise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fair amount of repeated code, but in this case I think that is OK - it avoids changing the code for the positive case, so it is unlikely to break anything.

@jonbinney jonbinney merged commit 2490b8a into ros-perception:kinetic-devel Feb 10, 2021
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