Skip to content

Added plugin to SDF DOM#788

Merged
nkoenig merged 9 commits intosdf12from
plugin_dom
Dec 17, 2021
Merged

Added plugin to SDF DOM#788
nkoenig merged 9 commits intosdf12from
plugin_dom

Conversation

@nkoenig
Copy link
Copy Markdown
Contributor

@nkoenig nkoenig commented Dec 15, 2021

Signed-off-by: Nate Koenig nate@openrobotics.org

🎉 New feature

Summary

Added a Plugin object to the SDF DOM and utilized the Plugin in the GUI DOM object. I'll add Plugin capabilities to the other DOM objects in future PRs.

Test it

Run the tests.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • 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

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@github-actions github-actions bot added 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress labels Dec 15, 2021
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 15, 2021

Codecov Report

Merging #788 (9996e03) into sdf12 (1a88972) will increase coverage by 0.04%.
The diff coverage is 95.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##            sdf12     #788      +/-   ##
==========================================
+ Coverage   89.56%   89.60%   +0.04%     
==========================================
  Files          76       78       +2     
  Lines       12603    12691      +88     
==========================================
+ Hits        11288    11372      +84     
- Misses       1315     1319       +4     
Impacted Files Coverage Δ
src/Gui.cc 90.47% <75.00%> (-9.53%) ⬇️
include/sdf/Plugin.hh 100.00% <100.00%> (ø)
src/Plugin.cc 100.00% <100.00%> (ø)

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 1a88972...9996e03. Read the comment docs.

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig requested a review from azeey December 16, 2021 17:53
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Copy link
Copy Markdown
Collaborator

@azeey azeey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor comments. Otherwise, LGTM!

/// \brief Copy constructor. This is here so that we can copy the
/// plugin contents.
/// \param[in] _plugin Plugin to copy.
public: Plugin(const Plugin &_plugin);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to add move constructor and move assignment as well per the rule of five.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was there a reason we didn't use ImplPtr here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it because we need to take care to clone the sdf::ElementPtr contents instead of just copying the shared pointer?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nkoenig and others added 4 commits December 17, 2021 10:44
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 merged commit ef48530 into sdf12 Dec 17, 2021
@nkoenig nkoenig deleted the plugin_dom branch December 17, 2021 23:09
@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.

8 participants