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

Rotate capsule to Z-up #186

Merged
merged 1 commit into from
Mar 22, 2021
Merged

Rotate capsule to Z-up #186

merged 1 commit into from
Mar 22, 2021

Conversation

chapulina
Copy link
Contributor

🦟 Bug fix

Summary

The capsule code was using Y-up, but Ignition uses Z-up. In particular, see the capsule description on Ignition Math and on SDFormat.

Before After
rolling_shapes_new2 rolling_shapes_correct

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • 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

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina added bug Something isn't working beta Targeting beta release of upcoming collection labels Mar 20, 2021
@chapulina chapulina requested review from mjcarroll and ahcorde March 20, 2021 00:05
@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Mar 20, 2021
@codecov
Copy link

codecov bot commented Mar 20, 2021

Codecov Report

Merging #186 (e158800) into main (2b4ad72) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #186   +/-   ##
=======================================
  Coverage   75.49%   75.49%           
=======================================
  Files          73       73           
  Lines       10346    10346           
=======================================
  Hits         7811     7811           
  Misses       2535     2535           
Impacted Files Coverage Δ
graphics/src/MeshManager.cc 86.50% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b4ad72...e158800. Read the comment docs.

Copy link
Contributor

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

Changes look good to me. Is there a way to unit test the CreateCapsule method somehow? I don't see any tests for this method in MeshManager_TEST.cc.

@chapulina
Copy link
Contributor Author

Is there a way to unit test the CreateCapsule method somehow? I don't see any tests for this method in MeshManager_TEST.cc.

It's being tested in SubMesh_TEST, see the test added in #155:

https://github.com/ignitionrobotics/ign-common/blob/2b4ad723418359ea744c58a29224d384e1409fc2/graphics/src/SubMesh_TEST.cc#L441

And see the coverage report.

The test is not checking the vertices and normals right now, but I don't know how much value there is in repeating the implementation logic in the test.

@chapulina chapulina merged commit d36a0fa into main Mar 22, 2021
@chapulina chapulina deleted the chapulina/4/capsule_z branch March 22, 2021 14:57
@azeey azeey mentioned this pull request Nov 2, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection bug Something isn't working 🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants