OpenRTM-aist-Python 2.0.0
|
公開メンバ関数 | |
def | __init__ (self, function, period) |
def | tick (self, interval) |
def | stop (self) |
周期関数呼び出し
def OpenRTM_aist.Timer.PeriodicFunction.__init__ | ( | self, | |
function, | |||
period | |||
) |
コンストラクタ
fn | 実行する関数または関数オブジェクト |
period | 実行間隔 |
def OpenRTM_aist.Timer.PeriodicFunction.stop | ( | self | ) |
周期実行を停止する
self |
def OpenRTM_aist.Timer.PeriodicFunction.tick | ( | self, | |
interval | |||
) |
1回の時間経過
interval | 経過した時間 |
interval 分だけ期限を減算し、期限切れの場合に関数を実行する。 関数が実行されると周期が再設定される。