rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.rospify.timer Namespace Reference

Stand-ins for `rospy.timer` in ROS2. More...

Classes

class  Rate
 Stand-in for `rospy.Rate`, wrapping the creation of ROS2 rate instance. More...
 
class  Timer
 Stand-in for `rospy.Timer`, wrapping the creation of ROS2 timer instance. More...
 
class  TimerEvent
 Constructor. More...
 

Functions

 sleep (duration)
 Sleeps for the specified duration in ROS time.
 

Detailed Description

Stand-ins for `rospy.timer` in ROS2.

Function Documentation

◆ sleep()

rosros.rospify.timer.sleep (   duration)

Sleeps for the specified duration in ROS time.

Parameters
durationseconds (or Duration) to sleep, <=0 returns immediately

Definition at line 33 of file timer.py.