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

Added Simulation features common test #362

Merged
merged 35 commits into from
Jul 8, 2022
Merged

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Jun 21, 2022

Signed-off-by: ahcorde ahcorde@gmail.com

🎉 New feature

Summary

Added Simulation features common test

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.

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this Jun 21, 2022
@ahcorde
Copy link
Contributor Author

ahcorde commented Jun 21, 2022

@osrf-jenkins run tests please!

Signed-off-by: ahcorde <ahcorde@gmail.com>
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #362 (58e6f4f) into main (0a7d9ea) will increase coverage by 2.00%.
The diff coverage is 100.00%.

❗ Current head 58e6f4f differs from pull request most recent head 693a109. Consider uploading reports for the commit 693a109 to get more accurate results

@@            Coverage Diff             @@
##             main     #362      +/-   ##
==========================================
+ Coverage   74.73%   76.74%   +2.00%     
==========================================
  Files         128      128              
  Lines        5628     5628              
==========================================
+ Hits         4206     4319     +113     
+ Misses       1422     1309     -113     
Impacted Files Coverage Δ
dartsim/src/ShapeFeatures.cc 79.44% <100.00%> (+42.77%) ⬆️
dartsim/src/EntityManagementFeatures.cc 83.77% <0.00%> (+1.98%) ⬆️
dartsim/src/FreeGroupFeatures.cc 81.72% <0.00%> (+32.25%) ⬆️

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 0a7d9ea...693a109. Read the comment docs.

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
dartsim/src/ShapeFeatures.cc Show resolved Hide resolved
test/common_test/simulation_features.cc Outdated Show resolved Hide resolved
test/common_test/simulation_features.cc Outdated Show resolved Hide resolved
test/common_test/simulation_features.cc Outdated Show resolved Hide resolved
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from mjcarroll June 22, 2022 20:24
Signed-off-by: ahcorde <ahcorde@gmail.com>
mjcarroll and others added 9 commits June 27, 2022 13:27
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Michael Carroll <michael@openrobotics.org>

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde marked this pull request as ready for review July 6, 2022 12:03
Signed-off-by: ahcorde <ahcorde@gmail.com>
Base automatically changed from ahcorde/6/refactor_common_test to main July 7, 2022 07:36
Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Two minor comments, otherwise LGTM

@@ -3,6 +3,7 @@ set(TEST_TYPE "COMMON_TEST")
set(tests
basic_test
construct_empty_world
simulation_features
)

link_directories(${PROJECT_BINARY_DIR}/test)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to this PR, but link_directories probably isn't necessary 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.

gz::physics::GetCylinderShapeProperties,
gz::physics::GetCapsuleShapeProperties,
gz::physics::GetEllipsoidShapeProperties
>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can these be grouped into feature lists that can be reused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will create granular tests in a follow up PR

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde merged commit 0d18a15 into main Jul 8, 2022
@ahcorde ahcorde deleted the ahcorde/6/simulation_features branch July 8, 2022 17:34
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