Closed g-arjones closed 4 months ago
Amended to fix linting issues
That would encapsulate loading the plugin and extracting the _sdf element from sdf::Plugin. Thoughts?
Sounds good to me. May I do it in this PR ?
That would encapsulate loading the plugin and extracting the _sdf element from sdf::Plugin. Thoughts?
Sounds good to me. May I do it in this PR ?
Go for it!
@azeey Comments have been addressed.
Thank you for the review!
@azeey Had to amend again because of another linter issue, sorry about that.
BTW, the contribution guide mentions a codecheck
target but the current cmake configuration doesn't seem to be generating that:
$ make codecheck
make: *** No rule to make target 'codecheck'. Stop.
How should I run cpplint and cppcheck on gz-sim properly?
@azeey Had to amend again because of another linter issue, sorry about that.
BTW, the contribution guide mentions a
codecheck
target but the current cmake configuration doesn't seem to be generating that:$ make codecheck make: *** No rule to make target 'codecheck'. Stop.
How should I run cpplint and cppcheck on gz-sim properly?
You must install cppcheck
first for the codecheck
target to be available.
You must install cppcheck first for the codecheck target to be available.
Got it. I think we are good to go now.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.98%. Comparing base (
633ce72
) to head (4e739b8
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
No problem. Amended again.
@azeey @iche033 Any idea when this might be released?
🦟 Bug fix
Fixes #2322
Summary
Entity and XML content information are lost when adding systems through the
Server::AddSystem(system)
API. To reproduce it:SystemLoader
(extracted from here):Without this patch, the code above will output:
After the patch, you will be able to use the extended
Server::AddSystem(plugin, entity, sdf)
API and get: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.