-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix GridConfig pose updates #658
Conversation
Before this fix, if the value property has a binding instead of a value, any modification from the GUI (e.g. hitting the up arrow on the spin box) would not actually change the displayed value because it is immediately reset back to the value set by the binding. This is the case in the `GzPose` module and the effect can be easily be seen in the `GridConfig` plugin. To test, run: `gz gui -c examples/config/grid_config.config` You will see that, before this change, modifying the x,y,z,roll,pitch, yaw values actually changes the grid configuration, but the updated values are not displayed in the spinbox. Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #658 +/- ##
==========================================
- Coverage 68.70% 68.67% -0.04%
==========================================
Files 38 38
Lines 5532 5548 +16
==========================================
+ Hits 3801 3810 +9
- Misses 1731 1738 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Works for me!
Unrelated to this fix but perhaps the 1 rad
increments in roll, pitch, yaw are too big.
ticketed an issue for this. #660 |
🦟 Bug fix
Summary
Follow up to #656. This PR fixes pose updates the GridConfig plugin.
Previously if you click on one of the GzPose spinboxes, e.g.
x
, followed by clicking on another spinbox, e.g.y
, the first pose component (x
) gets reset to the initial value. It was found that it was because the GzPose instance (gzPoseInstance
) properties were incorrectly bound to the initial pose values (passed in byonNewParams
in QML). This PR adds a newgridPose
property for handling read/writes from C++ and QML.Before:

After:

Checklist
codecheck
passed (See contributing)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.