Class TriggeringTestClock

Class Documentation

class TriggeringTestClock

Test utility for manual time control. Takes over control over the given Node’s clock. The Node must be constructed with parameter “use_sim_time” set to true. This implementation triggers timers’ callbacks as well.

Public Functions

inline TriggeringTestClock(rclcpp::Node::SharedPtr node)
inline rcl_time_point_value_t now() const
template<typename Duration>
inline void advance(Duration target_time)
inline void resetClock(const rcl_time_point_value_t tv = 0L)