-
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
Fix graded buoyancy problems #1297
Conversation
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1297 +/- ##
===============================================
- Coverage 62.25% 62.25% -0.01%
===============================================
Files 278 278
Lines 23208 23203 -5
===============================================
- Hits 14449 14444 -5
Misses 8759 8759
Continue to review full report at Codecov.
|
Signed-off-by: Louise Poubel <[email protected]>
I think there may still be some offset calculations that are incorrect, see |
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.
Besides #1301, I just have some more minor comments here.
…ded_buoyancy Documentation and more examples for #1297
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
I pushed d013573 to disable the buoyancy engine test that was introduced on #1298 on Windows. It's not directly related to this PR, but it's also "graded buoyancy", so I'm taking advantage of the CI run here. |
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.
LGTM with clean CI. I think we should eventually look deeper into why the 2 servers on the test are giving slightly different results though.
This should address #38. It requires the following upstream fixes and relevant forward ports: * gazebosim/gz-sim#1297 * gazebosim/gz-sim#1298⚠️ Do not merge till the CI goes from ❌ to :heavy_checkmark: Signed-off-by: Arjo Chakravarty <[email protected]>
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1 |
🦟 Bug fix
Fixes #1296 and #1210
Summary
The primary target of this PR is #1296. This PR changes an incorrect sign line 224 of the buoyancy plugin when it was running in graded buoyancy mode. Essentially when running the example in #1296 now both graded and uniform mode are unstable. This is the correct behavior. For a stable example see the added tests in this PR. In particular both SDFs should be stable and have small oscillations, but previously the graded buoyancy example would have kept on spinning.
Additionally #1210 would mean the graded buoyancy test would keep sinking. This PR removes the need for checking the
newPose
as we nolonger need the inertial pose. The reason I was initially using the inertialpose was because I had thought thatLink::AddWorldWrench
applies a force at the center of mass, but in reality the original behaviour in uniform buoyancy was correct asLink::AddWorldWrench
applies a force at the link itself.TL;DR
Before times when running https://github.com/ignitionrobotics/ign-gazebo/blob/1d461b849b92104299bc03879bb67db368fe10c9/test/worlds/buoyancy_graded_restoring_moments.sdf :
After times:
Checklist
Updated documentation (as needed)Updated migration guide (as needed)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.