2
votes
adjusting Timer period as it is in use, RCLCPP
I've found that simply cancelling then re-instantiating the timer appears to work aka:
...
1
vote
Accepted
Do ROS2 timers run before starting timer?
See this discourse thread for more info on timer behavior.
The timer callback is triggered only after the first timer period has lapsed.
As somewhat of an ugly hack (but which might be satisfactory ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
timer × 48ros × 25
ros2 × 12
roscpp × 6
c++ × 5
ros-kinetic × 5
callback × 5
rospy × 4
rclcpp × 3
clock × 3
ros-humble × 2
rclpy × 2
callbacks × 2
sleep × 2
nodehandle × 2
simulation × 1
gazebo × 1
rviz × 1
moveit × 1
ros-melodic × 1
rosbag × 1
ros-indigo × 1
syncronization × 1
node × 1
actionlib × 1