-
Notifications
You must be signed in to change notification settings - Fork 276
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
JointPositionController: Improve misleading error message #1098
Conversation
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo3 #1098 +/- ##
===============================================
+ Coverage 77.56% 77.85% +0.28%
===============================================
Files 208 221 +13
Lines 11385 12723 +1338
===============================================
+ Hits 8831 9905 +1074
- Misses 2554 2818 +264
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The error looks much clearer now! I've got a minor knit, it doesn't really matter as there should be a limited number of joints.
src/systems/joint_position_controller/JointPositionController.cc
Outdated
Show resolved
Hide resolved
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first quick look at the code, looks good, one important question only
src/systems/joint_position_controller/JointPositionController.cc
Outdated
Show resolved
Hide resolved
Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
…1098) Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Jose Luis Rivero <[email protected]> Signed-off-by: William Lew <[email protected]>
🦟 Bug fix
Summary
If another plugin adds the
JointPosition
component to the joint entity before the position controller does, it was printing this misleading message:However, what's happening is that we need to wait one iteration for the physics system to populate the component.
The fix here means that the plugin will silently skip updates for joints that have zero axes, such as ball joints, though.
I also made sure that if the plugin is instantiated multiple times for multiple joints, the error message is printed for all of them.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸