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 distance to servo collision checker requests #2511

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

sea-bass
Copy link
Contributor

@sea-bass sea-bass commented Nov 6, 2023

We found a bug today where the collision distances were not actually being returned by servo's collision checker. So basically, the distance scaling was never working and you could servo right into a binary "is colliding" state.

For reference, these parameters were on before the refactor: https://github.com/ros-planning/moveit2/blob/humble/moveit_ros/moveit_servo/src/collision_check.cpp#L62-L64

@ibrahiminfinite

@sea-bass sea-bass requested a review from AndyZe November 6, 2023 19:20
@sea-bass sea-bass self-assigned this Nov 6, 2023
@sea-bass sea-bass changed the title Add distance to servo collision requests Add distance to servo collision checker requests Nov 6, 2023
@sea-bass sea-bass requested a review from AndyZe November 6, 2023 21:36
@sea-bass sea-bass merged commit 04e9c3e into main Nov 6, 2023
14 checks passed
@sea-bass sea-bass deleted the fix-servo-collision-requests branch November 6, 2023 23:07
@ibrahiminfinite
Copy link
Contributor

Oh no!
I just remembered I haven't added tests for collision checking. I had planned to add it but must have forgot.

@ibrahiminfinite
Copy link
Contributor

But I also remember collision scaling actually working since I had tested it manually and the robot did slow down and stop without colliding.

@sea-bass
Copy link
Contributor Author

sea-bass commented Nov 7, 2023

The stopping part did work, but the distance always returned some large max value because it was not being returned. So basically the scaling factor would go directly from 1.0 to 0.0 once two links were in actual collision.

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.

None yet

3 participants