-
Notifications
You must be signed in to change notification settings - Fork 269
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 buoyancy not being applied for one iteration #1211
Conversation
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 #1211 +/- ##
============================================
Coverage 61.92% 61.92%
============================================
Files 275 275
Lines 22457 22457
============================================
Hits 13906 13906
Misses 8551 8551
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.
Nice catch! This fix works for me. I have a suggestion below for a more permanent fix.
{ | ||
// Skip entity if WorldPose and inertial are not yet ready | ||
// TODO(arjo): Find a way of disabling gravity effects for | ||
// this first iteration. |
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.
I think we may be able to avoid this skip if we use gazebo::worldPose
instead of the WorldPose
component. That function should provide the world pose straight away.
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.
Hmm, but we need to use link::WorldInertialPose
...
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.
Ahh I see, maybe the implementation of that method can be improved 🤔
Ouch, we should have squash-merged this. No need to go back and fix it, but something to keep in mind for next time. |
Signed-off-by: Arjo Chakravarty [email protected]
🦟 Bug fix
Workaround #1210
Summary
This PR currently is a work around, Essentially, it skips the check introduced in #1064 for the uniform buoyancy. This is fine as #1064 is not really position dependent. We should however leave #1210 open as no fix has been applied for layered buoyancy.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge