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

Stand-in for `rospy.Timer`, wrapping the creation of ROS2 timer instance. More...

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

Public Member Functions

 __new__ (cls, period, callback, oneshot=False, reset=None)
 Returns rclpy.timer.Timer instance.
 
 __subclasshook__ (cls, C)
 Returns true if C is a ROS2 timer class, else `NotImplemented`.
 

Detailed Description

Stand-in for `rospy.Timer`, wrapping the creation of ROS2 timer instance.

Definition at line 97 of file timer.py.

Member Function Documentation

◆ __new__()

rosros.rospify.timer.Timer.__new__ (   cls,
  period,
  callback,
  oneshot = False,
  reset = None 
)

Returns rclpy.timer.Timer instance.

Parameters
perioddesired period between callbacks, as `Duration`
callbackfunction to be called, taking rospy.TimerEvent
oneshotif True, fire only once, otherwise fire continuously until shutdown is called [default: False]
resetignored (ROS1 compatibility stand-in)

Definition at line 109 of file timer.py.

◆ __subclasshook__()

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

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

Definition at line 132 of file timer.py.


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