Package rospy :: Module timer

Module timer

source code

Classes
  Rate
Convenience class for sleeping in a loop at a specified rate
  TimerEvent
Constructor.
  Timer
Convenience class for calling a callback at a specified rate
Functions
 
sleep(duration)
sleep for the specified duration in ROS time.
source code
Variables
  __package__ = 'rospy'
Function Details

sleep(duration)

source code 

sleep for the specified duration in ROS time. If duration is negative, sleep immediately returns.

Parameters:
  • duration (float or Duration) - seconds (or rospy.Duration) to sleep
Raises: