Package rospy :: Module timer :: Class TimerEvent

Class TimerEvent

source code

object --+
         |
        TimerEvent

Constructor.

Instance Methods
 
__init__(self, last_expected, last_real, current_expected, current_real, last_duration)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, last_expected, last_real, current_expected, current_real, last_duration)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • last_expected (rospy.Time) - in a perfect world, this is when the previous callback should have happened
  • last_real (rospy.Time) - when the callback actually happened
  • current_expected (rospy.Time) - in a perfect world, this is when the current callback should have been called
  • current_real (rospy.Time) - when the current callback is actually being called (rospy.Time.now() as of immediately before calling the callback)
  • last_duration (float) - contains the duration of the last callback (end time minus start time) in seconds. Note that this is always in wall-clock time.
Overrides: object.__init__
(inherited documentation)