-
Notifications
You must be signed in to change notification settings - Fork 276
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
Support disabling pose publisher from publishing top level model pose #1342
Conversation
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
@@ -197,6 +200,12 @@ void PosePublisher::Configure(const Entity &_entity, | |||
_sdf->Get<bool>("publish_nested_model_pose", | |||
this->dataPtr->publishNestedModelPose).first; | |||
|
|||
// for backward compatibility, publish_model_pose will be set to the | |||
// same valuee as publish_nested_model_pose if it is not specified. |
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.
// same valuee as publish_nested_model_pose if it is not specified. | |
// same value as publish_nested_model_pose if it is not specified. |
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 good with the one typo.
Signed-off-by: Ian Chen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1342 +/- ##
===============================================
+ Coverage 62.91% 62.92% +0.01%
===============================================
Files 299 299
Lines 24151 24159 +8
===============================================
+ Hits 15194 15203 +9
+ Misses 8957 8956 -1
Continue to review full report at Codecov.
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1 |
Signed-off-by: Ian Chen [email protected]
🦟 Bug fix
Summary
The pose-publisher system uses only one parameter,
publish_nested_model_pose
, to determine whether or not top level model and nested model poses should be published. This PR adds another parameter,publish_model_pose
, to let users decouple pose publishing behavior between nested models and top level models.The changes should preserve existing behavior. That is, if
publish_nested_model_pose
is set to true, the top level model pose should still be published unless the user explicitly disables this by settingpublish_model_pose
to false. We should consider changing the behavior in garden.A typical use case is to disable publishing top level model's poses (ground truth data) but still allow nested model poses to be available to the user.
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.