ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There is an rclcpp::create_timer()
free function
The trick to a timer that uses simulated time is to pass a clock that uses simulated time to the rclcpp::create_timer()
function. The default clock on a node is a ROS clock - meaning it will use simulated time if simulated time is active.
You might also be interested in