rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.rospify.timer.TimerEvent Class Reference

Constructor. More...

Public Member Functions

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

Public Attributes

 current_expected
 
 current_real
 
 last_duration
 
 last_expected
 
 last_real
 

Detailed Description

Constructor.

Port of rospy.timer.TimerEvent from ROS1 to ROS2.

Parameters
last_expectedwhen previous callback should have happened, as rospy.Time
last_realwhen previous callback actually happened, as rospy.Time
current_expectedwhen current callback should have been called, as rospy.Time
last_durationduration of the last callback (end time minus start time) in seconds, as float. Note that this is always in wall-clock time.

Definition at line 88 of file timer.py.

Constructor & Destructor Documentation

◆ __init__()

rosros.rospify.timer.TimerEvent.__init__ (   self,
  last_expected,
  last_real,
  current_expected,
  current_real,
  last_duration 
)

Definition at line 89 of file timer.py.

Member Data Documentation

◆ current_expected

rosros.rospify.timer.TimerEvent.current_expected

Definition at line 92 of file timer.py.

◆ current_real

rosros.rospify.timer.TimerEvent.current_real

Definition at line 93 of file timer.py.

◆ last_duration

rosros.rospify.timer.TimerEvent.last_duration

Definition at line 94 of file timer.py.

◆ last_expected

rosros.rospify.timer.TimerEvent.last_expected

Definition at line 90 of file timer.py.

◆ last_real

rosros.rospify.timer.TimerEvent.last_real

Definition at line 91 of file timer.py.


The documentation for this class was generated from the following file: