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

Stand-in for `rospy.Rate`, wrapping the creation of ROS2 rate instance. More...

Inheritance diagram for rosros.rospify.timer.Rate:
Inheritance graph

Public Member Functions

 __new__ (cls, hz, reset=None)
 Returns rclpy.timer.Rate instance.
 
 __subclasshook__ (cls, C)
 Returns true if C is a ROS2 rate class, else `NotImplemented`.
 

Detailed Description

Stand-in for `rospy.Rate`, wrapping the creation of ROS2 rate instance.

Definition at line 60 of file timer.py.

Member Function Documentation

◆ __new__()

rosros.rospify.timer.Rate.__new__ (   cls,
  hz,
  reset = None 
)

Returns rclpy.timer.Rate instance.

Parameters
hzrate to determine sleeping
resetignored (ROS1 compatibility stand-in)

Definition at line 69 of file timer.py.

◆ __subclasshook__()

rosros.rospify.timer.Rate.__subclasshook__ (   cls,
  C 
)

Returns true if C is a ROS2 rate class, else `NotImplemented`.

Definition at line 73 of file timer.py.


The documentation for this class was generated from the following file: