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

Add support for no gravity link #1410

Merged
merged 3 commits into from
May 28, 2024
Merged

Conversation

AzulRadio
Copy link
Contributor

@AzulRadio AzulRadio commented May 8, 2024

🎉 New feature

Original issue: gazebosim/gz-sim#504

Summary

Add parsing and support for no gravity link when using DartSim engine

For implementation and test details, see gazebosim/gz-sim#2398

Changes in other repo:
gz-physics: gazebosim/gz-physics#633
sdformat: #1410

Test it

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.

@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label May 8, 2024
@AzulRadio AzulRadio marked this pull request as ready for review May 8, 2024 05:12
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.16%. Comparing base (5fab7a4) to head (52f1d2e).
Report is 2 commits behind head on sdf12.

❗ Current head 52f1d2e differs from pull request most recent head 624bc06. Consider uploading reports for the commit 624bc06 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##            sdf12    #1410      +/-   ##
==========================================
+ Coverage   92.14%   92.16%   +0.02%     
==========================================
  Files          79       79              
  Lines       13126    13267     +141     
==========================================
+ Hits        12095    12228     +133     
- Misses       1031     1039       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Do you mind to update the Python binding too ?

src/Link.cc Outdated Show resolved Hide resolved
Signed-off-by: youhy <haoyuan2019@outlook.com>
Signed-off-by: youhy <haoyuan2019@outlook.com>
@AzulRadio
Copy link
Contributor Author

Do you mind to update the Python binding too ?

Sure I'd love to but how do I do that? I looked around but didn't find any docs/codes for this. Can you tell me where I should start?

@ahcorde
Copy link
Collaborator

ahcorde commented May 9, 2024

There are two files that you need to modify:

@AzulRadio
Copy link
Contributor Author

There are two files that you need to modify:

These 2 files are only available for sdformat14 but I'm targeting sdformat12 which doesn't have these 2 files. Should I merge this, forward port to 14, and open a separate PR there for python binding, or open another PR on sdformat14 with both cpp and python interface?

@ahcorde
Copy link
Collaborator

ahcorde commented May 15, 2024

I opened an issue #1416 to dont forget about the python wrapper

@azeey or @scpeters are you happy with this?

Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

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

@azeey or @scpeters are you happy with this?

Yes, this is a great contribution! I've left some small comments and will merge when they are addressed.

include/sdf/Link.hh Outdated Show resolved Hide resolved
include/sdf/Link.hh Outdated Show resolved Hide resolved
src/Link.cc Outdated Show resolved Hide resolved
Signed-off-by: youhy <haoyuan2019@outlook.com>
@ahcorde ahcorde requested a review from scpeters May 16, 2024 19:31
@ahcorde ahcorde enabled auto-merge (squash) May 17, 2024 07:48
@ahcorde
Copy link
Collaborator

ahcorde commented May 17, 2024

@scpeters I can see this error on macOS

CMake Error at cmake_install.cmake:41 (file):
  file cannot create directory:
  /usr/local/Cellar/sdformat12/HEAD/lib/cmake/sdformat12-all.  Maybe need
  administrative privileges.

@ahcorde
Copy link
Collaborator

ahcorde commented May 28, 2024

friendly ping @scpeters

@azeey azeey disabled auto-merge May 28, 2024 15:18
@azeey
Copy link
Collaborator

azeey commented May 28, 2024

#1367 needs to be backported to Fortress. I'll go ahead and merge this since the Jenkins macOS build is green.

@azeey azeey merged commit c71fc82 into gazebosim:sdf12 May 28, 2024
10 of 11 checks passed
@AzulRadio AzulRadio deleted the azulradio/no_grav branch May 30, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants