rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
|
Stand-in for `rospy.Timer`, wrapping the creation of ROS2 timer instance. More...
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`. | |
Stand-in for `rospy.Timer`, wrapping the creation of ROS2 timer instance.
rosros.rospify.timer.Timer.__new__ | ( | cls, | |
period, | |||
callback, | |||
oneshot = False , |
|||
reset = None |
|||
) |
Returns rclpy.timer.Timer instance.
period | desired period between callbacks, as `Duration` |
callback | function to be called, taking rospy.TimerEvent |
oneshot | if True, fire only once, otherwise fire continuously until shutdown is called [default: False] |
reset | ignored (ROS1 compatibility stand-in) |
rosros.rospify.timer.Timer.__subclasshook__ | ( | cls, | |
C | |||
) |