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

Fix GridConfig pose updates #658

Merged
merged 6 commits into from
Mar 12, 2025
Merged

Fix GridConfig pose updates #658

merged 6 commits into from
Mar 12, 2025

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Mar 6, 2025

🦟 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 by onNewParams in QML). This PR adds a new gridPose property for handling read/writes from C++ and QML.

Before:
gridconfig_pose_before

After:
gridconfig_pose_after

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.

azeey and others added 5 commits February 21, 2025 22:56
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>
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 42.85714% with 12 lines in your changes missing coverage. Please review.

Project coverage is 68.67%. Comparing base (daf1a6c) to head (0351475).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/plugins/grid_config/GridConfig.cc 42.85% 12 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@caguero caguero self-requested a review March 10, 2025 18:21
Copy link
Contributor

@caguero caguero left a 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.

@iche033
Copy link
Contributor Author

iche033 commented Mar 12, 2025

Unrelated to this fix but perhaps the 1 rad increments in roll, pitch, yaw are too big.

ticketed an issue for this. #660

@iche033 iche033 merged commit 13882d9 into main Mar 12, 2025
10 of 12 checks passed
@iche033 iche033 deleted the iche033/fix_gridconfig branch March 12, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪵 jetty Gazebo Jetty
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants