Skip to content

When can a Duration/Time be negative? #525

Open
@dhood

Description

@dhood

Spinning off from ros2/geometry2#67 (comment) so I don't hijack that thread (and so the convo doesn't get lost).

I thought that Durations could not store negative values but from @tfoote's comment it sounds like that understanding is incorrect. The source of my misunderstanding is this line:

throw std::runtime_error("cannot store a negative duration point in rclcpp::Duration");

Should that check be removed? Or is it appropriate in that situation?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions