This repository was archived by the owner on May 31, 2025. It is now read-only.
use SteadyTimer in message_filters#1247
Merged
dirk-thomas merged 1 commit intoros:lunar-develfrom Dec 19, 2017
Merged
Conversation
mikepurvis
reviewed
Nov 24, 2017
| void init() | ||
| { | ||
| update_timer_ = nh_.createTimer(update_rate_, &TimeSequencer::update, this); | ||
| update_timer_ = nh_.createSteadyTimer(ros::WallDuration(update_rate_.toSec()), &TimeSequencer::update, this); |
Member
There was a problem hiding this comment.
Can WallDuration really not be initialized from a Duration? That seems like an API fail.
Contributor
Author
There was a problem hiding this comment.
IIRC it can't... but I didn't check that again and did it explicitly just to be sure...
Member
|
LGTM. It's a behaviour change, but I'd vote for this go into Lunar. It's extremely unlikely someone would be depending on the current broken behaviour. That said, there's a potential ABI issue would be if a third party had message_filter class members, those will now change in type (though not in size, so maybe it wouldn't actually be a problem, since there's nothing to link?). |
Member
|
Thank you for the patch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To make sure that the message filters also work if system time is set back, use SteadyTimer instead of the normal Timer