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

Geometry and others: update calls to use sdf::Errors parameters #1153

Merged
merged 9 commits into from
May 2, 2023

Conversation

marcoag
Copy link
Member

@marcoag marcoag commented Sep 19, 2022

Signed-off-by: Marco A. Gutierrez marco@openrobotics.org

🎉 New feature

Work towards #820.

Depends on: #1141.

Depends on: #1263 and its forward port.

Summary

Adds missing Errors structure parameters in a few methods of the following classes:

  • Box
  • Capsule
  • Collision
  • Cylinder
  • Ellipsoid
  • Geometry
  • Heightmap
  • Mesh
  • Plane
  • Polyline
  • Sphere
  • Surface

Adding several classes updates on this PR due to inter dependencies.

Test it

Using the classes above should report all errors through sdf::Errors if the errors parameter is used, it should print them otherwise.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • 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.

Marco A. Gutierrez added 2 commits October 3, 2022 16:18
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@marcoag marcoag changed the base branch from main to sdf13 October 3, 2022 16:20
@marcoag marcoag force-pushed the marcoag/sdf_error_geometry_and_others branch from 46c2718 to daf5695 Compare October 3, 2022 16:21
@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Merging #1153 (5dd9b08) into sdf13 (a5da9a3) will increase coverage by 0.05%.
The diff coverage is 99.48%.

❗ Current head 5dd9b08 differs from pull request most recent head e085435. Consider uploading reports for the commit e085435 to get more accurate results

@@            Coverage Diff             @@
##            sdf13    #1153      +/-   ##
==========================================
+ Coverage   87.66%   87.72%   +0.05%     
==========================================
  Files         126      126              
  Lines       16506    16585      +79     
==========================================
+ Hits        14470    14549      +79     
  Misses       2036     2036              
Impacted Files Coverage Δ
src/Collision.cc 97.43% <92.30%> (+0.17%) ⬆️
src/Box.cc 97.56% <100.00%> (+0.33%) ⬆️
src/Capsule.cc 100.00% <100.00%> (ø)
src/Cylinder.cc 100.00% <100.00%> (ø)
src/Ellipsoid.cc 97.56% <100.00%> (+0.33%) ⬆️
src/Geometry.cc 100.00% <100.00%> (ø)
src/Heightmap.cc 100.00% <100.00%> (ø)
src/Mesh.cc 98.71% <100.00%> (+0.08%) ⬆️
src/Plane.cc 96.36% <100.00%> (+0.36%) ⬆️
src/Polyline.cc 89.55% <100.00%> (+1.02%) ⬆️
... and 2 more

Marco A. Gutierrez added 2 commits March 22, 2023 13:33
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@marcoag
Copy link
Member Author

marcoag commented Mar 27, 2023

When I thought I was almost done adding the ToElement(errors) and Load() method tests for the classes in this PR I found out the ToElement method of the Surface class is missing some elements. I added a PR that fixes this here.

I guess we should keep this PR on hold until that one is merged and ported to sdf13.

Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@azeey
Copy link
Collaborator

azeey commented Apr 25, 2023

Can you fix the conflicts?

@azeey
Copy link
Collaborator

azeey commented May 2, 2023

The test failures on windows are being investigated in #1276.

@azeey azeey merged commit fd877b6 into sdf13 May 2, 2023
@azeey azeey deleted the marcoag/sdf_error_geometry_and_others branch May 2, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants