-
Notifications
You must be signed in to change notification settings - Fork 42
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
bullet-featherstone: fix setting angular velocity #567
Conversation
Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
* Use falling.world instead of shapes.world to avoid initial contact. * Verify free group pose and velocities in addition to link values. * Use AssertVectorApprox for velocity expectations, and use tighter tolerances. Signed-off-by: Steve Peters <[email protected]>
* Use btMultiBody::setBaseOmega API * Fix null pointer check Signed-off-by: Steve Peters <[email protected]>
linkFrameData = model->GetLink(0)->FrameDataRelativeToWorld(); | ||
|
||
// Expect linear velocity to be affected by gravity. | ||
const Eigen::Vector3d linearVelocityAfterStep{0.1, 0.2, 0.3 - 9.8 * 0.001}; |
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.
TPE is failing these expectations
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.
should be fixed by d604c92
Signed-off-by: Steve Peters <[email protected]>
Codecov Report
@@ Coverage Diff @@
## gz-physics6 #567 +/- ##
===============================================
+ Coverage 77.16% 77.77% +0.61%
===============================================
Files 143 143
Lines 7309 7295 -14
===============================================
+ Hits 5640 5674 +34
+ Misses 1669 1621 -48
|
Signed-off-by: Steve Peters <[email protected]> Signed-off-by: Steve Peters <[email protected]>
🦟 Bug fix
Part of #545.
Summary
I've been working on a test for off-diagonal moment of inertia components to support #544 based on free rotation of oblong rigid bodies (similar to a test from gazebo-classic), and I found that bullet-featherstone's
SetFreeGroupWorldAngularVelocity
API wasn't working quite right. I've updated the FeatureList for the FreeGroup test inCOMMON_TEST_simulation_features
so that it will run with bullet-featherstone (33e12fa) and also refactored the test a bit (a4359ef: use a world that doesn't start with shapes already in contact, add expectations for FreeGroup APIs, and tighten expected velocity tolerances).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.