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 removing the actor, light, or model from the root #1492

Merged
merged 9 commits into from
Nov 12, 2024

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented Oct 15, 2024

🎉 New feature

Summary

The Root object didn't have a mechanism to clear/remove the actor, light, or model. This PR adds a Clear function that similar to the other Clear functions.

Test it

Tests have been added.

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 🌱 garden Ignition Garden label Oct 15, 2024
@nkoenig nkoenig changed the base branch from sdf13 to sdf14 October 15, 2024 13:19
Signed-off-by: Nate Koenig <[email protected]>
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.

looks good; I suggested some small, optional improvements to the test

src/Root_TEST.cc Show resolved Hide resolved
src/Root_TEST.cc Show resolved Hide resolved
src/Root_TEST.cc Show resolved Hide resolved
src/Root_TEST.cc Show resolved Hide resolved
src/Root_TEST.cc Show resolved Hide resolved
src/Root_TEST.cc Show resolved Hide resolved
nkoenig and others added 6 commits October 15, 2024 11:06
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
@azeey azeey added 🎵 harmonic Gazebo Harmonic and removed 🌱 garden Ignition Garden labels Nov 5, 2024
@nkoenig nkoenig merged commit d0bcd40 into sdf14 Nov 12, 2024
12 checks passed
@nkoenig nkoenig deleted the feature/root-clear-actorlightmodel branch November 12, 2024 18:07
udaya2899 pushed a commit to udaya2899/sdformat that referenced this pull request Nov 14, 2024
…1492)

* Support removing the actor, light, or model from the root

Signed-off-by: Nate Koenig <[email protected]>

* Update src/Root_TEST.cc

Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>

* Update src/Root_TEST.cc

Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>

* Update src/Root_TEST.cc

Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>

* Update src/Root_TEST.cc

Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>

* Update src/Root_TEST.cc

Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>

* Update src/Root_TEST.cc

Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>

---------

Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Status: Highlights
Development

Successfully merging this pull request may close these issues.

4 participants