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 fixed frames to /tf_static #158

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

jacobperron
Copy link
Contributor

Remove the deprecated 'use_tf_static' parameter. Now fixed transforms
will always be published to the topic /tf_static.

This change also avoid repeatedly publishing the same transforms.
This restores the behavior from ROS 1; now a single "latched" message
is published over /tf_static.

Fixes #157

@jacobperron
Copy link
Contributor Author

@clalancette @sloretz friendly ping. Looking for a review of this fix.

@clalancette clalancette force-pushed the jacob/always_publish_static branch from 0916d3b to 69cc005 Compare July 6, 2021 17:53
Remove the deprecated 'use_tf_static' parameter. Now fixed transforms
will always be published to the topic /tf_static.

This change also avoid repeatedly publishing the same transforms.
This restores the behavior from ROS 1; now a single "latched" message
is published over /tf_static.

Signed-off-by: Jacob Perron <[email protected]>
@clalancette clalancette force-pushed the jacob/always_publish_static branch from 69cc005 to 6048c06 Compare July 6, 2021 18:27
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

OK, so I rebased this, made a few inline code changes, and updated the README to explain more about the /tf vs. /tf_static topics in here. I think this looks good now, so I'm going to approve. That said, I did enough changes in here that I'd appreciate a re-review by @jacobperron , and a quick conceptual review by @sloretz .

@clalancette
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor Author

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette
Copy link
Contributor

I'm going to go ahead and merge this, and also add a note to the Humble release notes.

@clalancette clalancette merged commit d4fe944 into ros2 Jul 12, 2021
@clalancette clalancette deleted the jacob/always_publish_static branch July 12, 2021 17:28
@clalancette
Copy link
Contributor

See ros2/ros2_documentation#1732

@wep21
Copy link

wep21 commented Sep 23, 2021

@clalancette Can I create a backport PR for this to galactic branch?

@clalancette
Copy link
Contributor

@clalancette Can I create a backport PR for this to galactic branch?

No, I'm sorry. This is too big of a behavior change to introduce into a stable distribution.

That said, if you want to prevent robot_state_publisher from publishing on a timer, feel free to submit a PR to Galactic to do that. Just make sure that the current behavior is maintained by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants