class documentation
class Timer(threading.Thread):
Constructor: Timer(period, callback, oneshot, reset)
Convenience class for calling a callback at a specified rate
Method | __init__ |
Constructor. @param period: desired period between callbacks @type period: rospy.Duration @param callback: callback to be called @type callback: function taking rospy.TimerEvent @param oneshot: if True, fire only once, otherwise fire continuously until shutdown is called [default: False] @type oneshot: bool @param reset: if True, timer is reset when rostime moved backward... |
Method | run |
Undocumented |
Method | shutdown |
Stop firing callbacks. |
Instance Variable | daemon |
Undocumented |
Instance Variable | _callback |
Undocumented |
Instance Variable | _oneshot |
Undocumented |
Instance Variable | _period |
Undocumented |
Instance Variable | _reset |
Undocumented |
Instance Variable | _shutdown |
Undocumented |
Constructor. @param period: desired period between callbacks @type period: rospy.Duration @param callback: callback to be called @type callback: function taking rospy.TimerEvent @param oneshot: if True, fire only once, otherwise fire continuously until shutdown is called [default: False] @type oneshot: bool @param reset: if True, timer is reset when rostime moved backward. [default: False] @type reset: bool