ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Can you clarify why you want to use a Timer
? If you calculate your own timeouts, you could just use ros::Duration(T).sleep()
. If you want to sleep, but take execution time of your algorithm into account, use ros::Rate
, which already does what you are trying to do.
2 | No.2 Revision |
Can you clarify why you want to use a Timer
? If you calculate your own timeouts, you could just use ros::Duration(T).sleep()
. If you want to sleep, but take execution time of your algorithm into account, use ros::Rate
, which already does what you are trying to do.do (see roscpp/Overview/Time).