-
Notifications
You must be signed in to change notification settings - Fork 98
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
Root to element #842
Root to element #842
Conversation
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Codecov Report
@@ Coverage Diff @@
## sdf12 #842 +/- ##
==========================================
+ Coverage 88.48% 88.51% +0.02%
==========================================
Files 92 92
Lines 14190 14222 +32
==========================================
+ Hits 12556 12588 +32
Misses 1634 1634
Continue to review full report at Codecov.
|
Can you resolve the conflicts? |
Signed-off-by: Nate Koenig <[email protected]>
Resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! My main question is regarding plugins
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
…t into root_to_element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Since using ToElement(true)
won't capture the effects of the param passing functionality, it would be good to mentiona that in ToElement
's documentation.
One overall observation is that we have recently made efforts to avoid printing default elements and attributes (see #575) when calling sdf::Element::ToString
. However, this currently doesn't work if the ElementPtr
is obtained using ToElement
. Should I ticket an issue?
Signed-off-by: Nate Koenig <[email protected]>
I've add documentation to the
Yes please. |
Ticketed #867 |
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 |
🎉 New feature
Summary
Adds
Root::ToElement
, similar to the otherToElement
functions. This does change the API ofWorld::ToElement
, which I think is okay because sdf12 has not been released with the originalWorld::ToElement
function.Test it
Run the tests.
Checklist
codecheck
passed (See contributing)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.