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

Do not timeout when waiting for transforms #146

Merged
merged 3 commits into from
Aug 7, 2019

Conversation

jacobperron
Copy link
Member

@jacobperron jacobperron commented Aug 6, 2019

Previously, a value of zero was causing timeouts to happen immediately.

Resolves #145

Previously, a value of zero was causing timeouts to happen immediately.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

This fix should resolve an issue with the RViz message filter display ros2/rviz#375 (comment)

@jacobperron
Copy link
Member Author

As discussed earlier, and also mentioned here, maybe it makes sense to expose the timeout as a parameter to MessageFilter.

@wjwwood @tfoote Thoughts?

@jacobperron jacobperron added the in review Waiting for review (Kanban column) label Aug 6, 2019
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm as a default

As discussed earlier, and also mentioned here, maybe it makes sense to expose the timeout as a parameter to MessageFilter.

I would say so. You never really want an unconfigurable timeout.

The parameter defaults to std::chrono::duration::max().

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

I've parameterized the buffer lookup timeout via the constructor (2a4e1f9) and added tests (0c317aa). @wjwwood PTAL.

@jacobperron
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default waitForTransform timeout of 0ns in message filter results in 100% transform timeout
2 participants