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

[bullet]: Fix how changed link poses are computed #460

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Dec 6, 2022

🦟 Bug fix

Summary

The existing pose computation used pose data that was never updated by the physics engine. This causes gz-sim to skip updating the poses of links. To test, run gz sim -v 4 --physics-engine gz-physics-bullet-plugin rolling_shapes.sdf -r. Without this PR, the shapes do not move.

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.

The existing pose computation used pose data that was never updated by
the physics engine.

Signed-off-by: Addisu Z. Taddese <[email protected]>
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Dec 6, 2022
@azeey azeey self-assigned this Dec 6, 2022
@@ -36,6 +37,8 @@ struct SimulationFeatureList : gz::physics::FeatureList<
> { };

class SimulationFeatures :
public CanWriteExpectedData<SimulationFeatures,
Copy link
Contributor

@ahcorde ahcorde Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this happenning in featherstone too ? I can reproduce the issue only with bullet, featherstone should be fine without this changes, is there any other reason to add this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is not happening on featherstone, but inheriting from CanWriteExpectedData adds a compile-time check that the class implements Write for the expected data type. It's not strictly necessary.

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #460 (bba9874) into gz-physics6 (a01ff7c) will increase coverage by 0.03%.
The diff coverage is 100.00%.

❗ Current head bba9874 differs from pull request most recent head 64eed19. Consider uploading reports for the commit 64eed19 to get more accurate results

@@               Coverage Diff               @@
##           gz-physics6     #460      +/-   ##
===============================================
+ Coverage        75.79%   75.82%   +0.03%     
===============================================
  Files              140      140              
  Lines             7056     7066      +10     
===============================================
+ Hits              5348     5358      +10     
  Misses            1708     1708              
Impacted Files Coverage Δ
bullet/src/Base.hh 86.76% <100.00%> (+2.01%) ⬆️
bullet/src/SimulationFeatures.cc 92.85% <100.00%> (+0.26%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@azeey azeey requested a review from ahcorde December 7, 2022 21:49
@ahcorde ahcorde merged commit bf4cc20 into gazebosim:gz-physics6 Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants