Define RMW_DURATION_INFINITE

Define Documentation

RMW_DURATION_INFINITE

Constant representing an infinite duration. Use rmw_time_equal for comparisons.

Different RMW implementations have different representations for infinite durations. This value is reported for QoS policy durations that are left unspecified. Do not directly compare sec == sec && nsec == nsec, because we don’t want to be sensitive to non-normalized values (nsec > 1 second) - use rmw_time_equal instead. This value is INT64_MAX nanoseconds = 0x7FFF FFFF FFFF FFFF = d 9 223 372 036 854 775 807

Note: these constants cannot be static const rmw_time_t because in C that can’t be used as a compile-time initializer