Skip to content

More to element#783

Merged
nkoenig merged 12 commits intosdf12from
more_to_element
Dec 11, 2021
Merged

More to element#783
nkoenig merged 12 commits intosdf12from
more_to_element

Conversation

@nkoenig
Copy link
Copy Markdown
Contributor

@nkoenig nkoenig commented Dec 10, 2021

🎉 New feature

Summary

This is a bit bigger than the other pull requests. I found a bug when I used InsertElement. I forgot to set the parent element prior to element insertion. This led me to add a new InsertElement function that supports auto-setting the parent element on insertion since this seems to be a very common pattern. To make sure this work, I updated a couple InsertElement function calls in parser.cc to use this new function, and similar swap in Element_TEST.cc.

This PR also adds ToElement function to Gui, Scene, Sky, and World. This should be the last PR related to ToElement.

Test it

Run the tests.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • 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

Nate Koenig added 9 commits December 3, 2021 09:53
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig requested a review from iche033 December 10, 2021 18:41
@github-actions github-actions bot added 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress labels Dec 10, 2021
Nate Koenig added 2 commits December 10, 2021 10:44
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 10, 2021

Codecov Report

Merging #783 (ebbc79a) into sdf12 (2f21fb2) will increase coverage by 0.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            sdf12     #783      +/-   ##
==========================================
+ Coverage   89.31%   89.52%   +0.21%     
==========================================
  Files          76       76              
  Lines       12495    12577      +82     
==========================================
+ Hits        11160    11260     +100     
+ Misses       1335     1317      -18     
Impacted Files Coverage Δ
include/sdf/Element.hh 100.00% <ø> (ø)
src/Actor.cc 93.72% <100.00%> (+0.99%) ⬆️
src/Collision.cc 97.14% <100.00%> (ø)
src/Element.cc 96.89% <100.00%> (+0.02%) ⬆️
src/Geometry.cc 100.00% <100.00%> (ø)
src/Gui.cc 100.00% <100.00%> (ø)
src/Link.cc 97.62% <100.00%> (+1.97%) ⬆️
src/Model.cc 90.43% <100.00%> (+0.86%) ⬆️
src/ParticleEmitter.cc 92.23% <100.00%> (ø)
src/Scene.cc 100.00% <100.00%> (ø)
... and 7 more

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 2f21fb2...ebbc79a. Read the comment docs.

Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Copy link
Copy Markdown
Contributor

@iche033 iche033 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 to me.

@nkoenig nkoenig merged commit 826e7d6 into sdf12 Dec 11, 2021
@nkoenig nkoenig deleted the more_to_element branch December 11, 2021 16:34
@osrf-triage
Copy link
Copy Markdown

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏯 fortress Ignition Fortress 🌱 garden Ignition Garden

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants