Timer class.
Invoke the callback function of registered listener periodically at the set cycle.
- Since
- 0.4.0
Definition at line 44 of file Timer.py.
def OpenRTM_aist.Timer.Timer.registerListener |
( |
|
self, |
|
|
|
listener, |
|
|
|
tm |
|
) |
| |
Register listener.
Register the listener of callback function invoked from this Timer by specifying the interval. If the same listener has already been regiseterd, the value specified the invocation interval of listener will be updated.
- Parameters
-
listener | Listener for the registration |
tm | The invocation interval of listener |
- Returns
- ID of the registerd listener
ListenerId registerListener(ListenerBase* listener, TimeValue tm);
Definition at line 241 of file Timer.py.
def OpenRTM_aist.Timer.Timer.registerListenerObj |
( |
|
self, |
|
|
|
obj, |
|
|
|
cbf, |
|
|
|
tm |
|
) |
| |
Register listener.
Register listener by specifying the object for callback, the method for callback and the invocation interval.
- Parameters
-
obj | Target object for callback |
cbf | Target method for callback |
tm | The invocation interval of listener |
- Returns
- ID of the registerd listener
template <class listenerclass>=""> ListenerId registerListenerObj(ListenerClass* obj, void (ListenerClass::*cbf)(), TimeValue tm)
Definition at line 285 of file Timer.py.