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

Added plugin to SDF DOM #788

Merged
merged 9 commits into from
Dec 17, 2021
Merged

Added plugin to SDF DOM #788

merged 9 commits into from
Dec 17, 2021

Conversation

nkoenig
Copy link
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>
@osrf-triage osrf-triage added this to Inbox in Core development Dec 15, 2021
@github-actions github-actions bot added 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress labels Dec 15, 2021
Signed-off-by: Nate Koenig <nate@openrobotics.org>
include/sdf/Plugin.hh Outdated Show resolved Hide resolved
src/Plugin_TEST.cc Show resolved Hide resolved
Core development automation moved this from Inbox to In review Dec 15, 2021
Signed-off-by: Nate Koenig <nate@openrobotics.org>
include/sdf/Plugin.hh Show resolved Hide resolved
include/sdf/Plugin.hh Outdated Show resolved Hide resolved
src/Plugin_TEST.cc Show resolved Hide resolved
@codecov-commenter
Copy link

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
src/Gui.cc Outdated Show resolved Hide resolved
include/sdf/Gui.hh Outdated Show resolved Hide resolved
src/Plugin.cc Show resolved Hide resolved
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Copy link
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!

include/sdf/Gui.hh Outdated Show resolved Hide resolved
/// \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
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
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
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
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
Core development automation moved this from In review to Done Dec 17, 2021
@nkoenig nkoenig deleted the plugin_dom branch December 17, 2021 23:09
@chapulina chapulina moved this from Done to Highlights in Core development Dec 20, 2021
@osrf-triage
Copy link

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

@j-rivero j-rivero removed this from Highlights in Core development May 6, 2022
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.

None yet

6 participants