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

Support world joints (joints inside <world> tags) #1949

Merged
merged 6 commits into from
Jun 13, 2023
Merged

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Mar 31, 2023

🎉 New feature

Summary

As of gazebosim/sdformat#1117, SDFormat supports joints under world (//world/joint in xpath). This PR adds support for it in gz-sim.

Note that some systems that operate on joints, such as the JointPositionController, require that the system is instantiated inside a model, and therefore, will not work with world joints. It's not clear whether this is a real problem since world joints are most likely to be fixed joints used to attach two models together.

Needs: gazebosim/gz-physics#501

Test it

A new test JointsInWorld has been added to test/integration/physics_system.cc.

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: Addisu Z. Taddese <addisu@openrobotics.org>
@azeey azeey added the needs upstream release Blocked by a release of an upstream library label Mar 31, 2023
@azeey azeey requested a review from mjcarroll as a code owner March 31, 2023 04:55
@azeey azeey self-assigned this Mar 31, 2023
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Mar 31, 2023
@osrf-triage osrf-triage added this to Inbox in Core development Mar 31, 2023
@azeey azeey added this to In Review in SDFormat Development TRI Apr 3, 2023
@azeey azeey moved this from Inbox to In review in Core development Apr 3, 2023
@azeey azeey requested a review from marcoag April 10, 2023 14:22
ahcorde
ahcorde previously requested changes May 8, 2023
src/systems/physics/Physics.cc Outdated Show resolved Hide resolved
test/integration/physics_system.cc Outdated Show resolved Hide resolved
test/integration/physics_system.cc Outdated Show resolved Hide resolved
@azeey azeey requested a review from ahcorde May 24, 2023 18:57
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #1949 (8c17cf4) into gz-sim7 (3bde4b5) will increase coverage by 0.00%.
The diff coverage is 95.23%.

❗ Current head 8c17cf4 differs from pull request most recent head 3a36842. Consider uploading reports for the commit 3a36842 to get more accurate results

@@           Coverage Diff            @@
##           gz-sim7    #1949   +/-   ##
========================================
  Coverage    64.98%   64.99%           
========================================
  Files          353      353           
  Lines        28600    28621   +21     
========================================
+ Hits         18585    18601   +16     
- Misses       10015    10020    +5     
Impacted Files Coverage Δ
src/LevelManager.cc 89.39% <94.11%> (+0.20%) ⬆️
src/systems/physics/Physics.cc 67.35% <100.00%> (+0.22%) ⬆️

... and 3 files with indirect coverage changes

@azeey azeey removed the needs upstream release Blocked by a release of an upstream library label May 30, 2023
@azeey
Copy link
Contributor Author

azeey commented May 30, 2023

@osrf-jenkins run tests please

azeey added 2 commits May 30, 2023 17:55
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@azeey
Copy link
Contributor Author

azeey commented Jun 13, 2023

The ResetFixture.HandleReset test has failed at least once in the past and doesn't seem related to this PR. I'll go ahead and merge.

@azeey azeey dismissed ahcorde’s stale review June 13, 2023 20:56

Review comments have been addressed

@azeey azeey merged commit 064f69e into gz-sim7 Jun 13, 2023
8 checks passed
Core development automation moved this from In review to Done Jun 13, 2023
@azeey azeey deleted the azeey/world_joint branch June 13, 2023 20:56
Bac0nEater pushed a commit to UoA-CARES/gz-sim that referenced this pull request Jun 19, 2023
As of gazebosim/sdformat#1117, SDFormat supports joints under world (//world/joint in xpath). This PR adds support for it in gz-sim.

Note that some systems that operate on joints, such as the JointPositionController, require that the system is instantiated inside a model, and therefore, will not work with world joints. It's not clear whether this is a real problem since world joints are most likely to be fixed joints used to attach two models together.

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Bac0nEater <thenickys123@gmail.com>
@EricCousineau-TRI EricCousineau-TRI moved this from In Review to Done in SDFormat Development TRI Jun 22, 2023
@azeey azeey moved this from Done to Highlights in Core development Jun 26, 2023
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.

None yet

3 participants