Skip to content

change timer with period of 0s to 1ms#275

Closed
dirk-thomas wants to merge 1 commit intomasterfrom
fix_next_timer_call
Closed

change timer with period of 0s to 1ms#275
dirk-thomas wants to merge 1 commit intomasterfrom
fix_next_timer_call

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

Related to ros2/rcl#291.

A timer with a period of 0s is kind of weird. It implies an infinite frequency.

@dirk-thomas dirk-thomas added bug Something isn't working in review Waiting for review (Kanban column) labels Sep 6, 2018
@dirk-thomas dirk-thomas self-assigned this Sep 6, 2018
@dhood dhood added the in progress Actively being worked on (Kanban column) label Sep 6, 2018
@dirk-thomas dirk-thomas removed the in progress Actively being worked on (Kanban column) label Sep 6, 2018
@wjwwood
Copy link
Copy Markdown
Member

wjwwood commented Sep 6, 2018

I don't think this is the right way to resolve this. There's already a TODO to have a "call soon" like function on the node, at which point we could make 0s an invalid value for timers, until then 1ms, while similar, is not the same thing.

If you truly believe a period of zero makes no sense, then it should not be allowed as an argument to the create timer function.

@dirk-thomas
Copy link
Copy Markdown
Member Author

dirk-thomas commented Sep 6, 2018

Obsolete with the referenced ticket keeping support for zero periods.

@dirk-thomas dirk-thomas closed this Sep 6, 2018
@dirk-thomas dirk-thomas deleted the fix_next_timer_call branch September 6, 2018 22:22
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants