RIVeR-Lab / epos_hardware

Other
12 stars 39 forks source link

Use ros::SteadyTime for calculating update period #29

Open matthew-reynolds opened 3 years ago

matthew-reynolds commented 3 years ago

A monotonic time source should be used for calculating the update period passed into the controller manager. This ensures the period is always accurate, and isn't impacted by time smears or time jumps in the wall time. These irregularities in the wall time are not that uncommon, for example when the system time gets synchronized via NTP. ros::SteadyTime ensures these irregularities don't break the controller update calculations.