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

11 ➡️ 12 Forward port #627

Merged
merged 18 commits into from
Jul 17, 2021
Merged

11 ➡️ 12 Forward port #627

merged 18 commits into from
Jul 17, 2021

Conversation

scpeters
Copy link
Member

11 ➡️ 12 Forward port

Port sdf11 to main

Branch comparison: main...sdf11

Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

Marco A. Gutiérrez and others added 18 commits June 17, 2021 13:37
gazebosim#575)

Now PrintValues() and ToString() will not output the elements that were added by default during parsing. There's also the option to call them with a boolean flag that will allow the caller to decide weather they want defaults in the output or not.

Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>

Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
* check for <experimental:params> & test

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* defined xml namespace

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* Param passing prototype: Retrieve specified element (gazebosim#427)

* retrieve element by identifier under <experimental:params>

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* Moved updateParams before addNestedModel (gazebosim#464)

* retrieve element for add action & added tests

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* replaced name with element_id

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* moved updateParams before addNestedModel

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* found chars using rfind

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* added error when element_id missing name after ::

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* updated find w/ startIdx

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Param passing prototype: Add action (gazebosim#546)

* tinyxml2 to string helper

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed codecheck errors

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* changed parser_private functions to nonstatic

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed specification check

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action requires 'name' attribute in spec

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed nested include test

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed unused param

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* check name attr nonempty

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* storing attribute to variable

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* Param passing prototype: Remove action (gazebosim#563)

* tinyxml2 to string helper

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed codecheck errors

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* changed parser_private functions to nonstatic

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed specification check

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* remove action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action requires 'name' attribute in spec

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed nested include test

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed unused param

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* check name attr nonempty

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* Param passing prototype: Replace action (gazebosim#566)

* tinyxml2 to string helper

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed codecheck errors

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* changed parser_private functions to nonstatic

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed specification check

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* remove action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action requires 'name' attribute in spec

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed nested include test

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed unused param

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* check name attr nonempty

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* replace action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* renamed init element description function

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* added ParamPassing namespace

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* updated add for plugins

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* Param passing prototype: Modify action (gazebosim#577)

* tinyxml2 to string helper

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed codecheck errors

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* changed parser_private functions to nonstatic

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed specification check

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* remove action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* add action requires 'name' attribute in spec

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed nested include test

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed unused param

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* check name attr nonempty

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* replace action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* modify action

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* code cleanup

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* added nested model test

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* readXml wrapper

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* SDFPtr to ElementPtr

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* updated test paths

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* removed nested links

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

* fixed add & modify bugs

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Ian Chen <ichen@osrfoundation.org>
This moves the recently added data member `explicitlySetInFile` to the
end of the `ElementPrivate` class

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
The graph data is private, so expose methods for
checking that the graphs are valid.

* Add tests showing graph errors

Load an sdf::World or sdf::Model instead of an sdf::Root to
see the graph errors.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
The graph data is private, so expose methods for
checking that the graphs are valid.

* Add tests showing graph errors

Load an sdf::World or sdf::Model instead of an sdf::Root to
see the graph errors.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
* Prepare for 11.2.2

Signed-off-by: Steven Peters <scpeters@openrobotics.org>

Co-authored-by: Steve Peters <scpeters@openrobotics.org>
* Error: move << operator from .hh to .cc file

Signed-off-by: Steven Peters <scpeters@openrobotics.org>

* Fix visibility

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@scpeters scpeters requested review from azeey and chapulina July 17, 2021 01:01
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Jul 17, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #627 (199c529) into main (218a6f7) will increase coverage by 0.31%.
The diff coverage is 97.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #627      +/-   ##
==========================================
+ Coverage   87.57%   87.89%   +0.31%     
==========================================
  Files          72       72              
  Lines       10497    10837     +340     
==========================================
+ Hits         9193     9525     +332     
- Misses       1304     1312       +8     
Impacted Files Coverage Δ
include/sdf/Element.hh 100.00% <ø> (ø)
src/Element.cc 96.73% <90.62%> (-0.92%) ⬇️
src/ParamPassing.cc 97.41% <97.41%> (ø)
src/Error.cc 100.00% <100.00%> (ø)
src/FrameSemantics.cc 73.87% <100.00%> (+0.15%) ⬆️
src/Model.cc 89.41% <100.00%> (+0.18%) ⬆️
src/World.cc 96.18% <100.00%> (+0.08%) ⬆️
src/parser.cc 84.74% <100.00%> (+0.42%) ⬆️
... and 1 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 218a6f7...199c529. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants