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

Always publish if flag is passed to Model::SetScale #3116

Merged
merged 2 commits into from
Oct 7, 2021

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Oct 7, 2021

Currently Model::SetScale does nothing if the new scale is approximately equal to the current scale, even if the _publish flag is set to true. This change ensures that the scale is always published if the flag is set.

Currently Model::SetScale does nothing if the
new scale is approximately equal to the current
scale, even if the _publish flag is set to true.
This change ensures that the scale is always published
if the flag is set.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Expect new ~/model/info messages to be passed for
each call to SetScale if publish flag is set, even
if the scale value is not different.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters requested a review from iche033 October 7, 2021 06:57
@scpeters
Copy link
Member Author

scpeters commented Oct 7, 2021

cc @mogumbo

@scpeters
Copy link
Member Author

scpeters commented Oct 7, 2021

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

looks good to me.

@scpeters scpeters merged commit 119dc8d into gazebosim:gazebo11 Oct 7, 2021
@scpeters scpeters deleted the model_set_scale_publish_more branch October 7, 2021 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants