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

Make sure steering joints exist before updating velocity / odometry in AckermannSteering plugin #2521

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Aug 7, 2024

🦟 Bug fix

Fixes #2507

Summary

Don't update if joints are not found. This prevents a crash found in #2507.

The user should see warning msgs like:

[Wrn] [AckermannSteering.cc:530] Failed to find left joint [front_left_wheel_joint] for model [box]

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Ian Chen <ichen@openrobotics.org>
@iche033 iche033 merged commit c48fa58 into gz-sim8 Aug 12, 2024
8 of 9 checks passed
@iche033 iche033 deleted the ackermann_joints branch August 12, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Crash after dynamically adding plugin AckermannSteering
2 participants