rclcpp
rclcpp copied to clipboard
Modifies timers API to select autostart state
Signed-off-by: Voldivh [email protected]
This PR addresses the issue #1980. Basically it gives the timers API a variable that enables or disables the start of the timer at initialization. The variable autostart
is defaulted to True
in order to avoid any breaks in current use of the API. In order to start the timer if autostart = false
you can simply call the method timer->reset()
. This PR is dependant on modifications on this PR at the RCL package and should be merged after that one.