Public Member Functions | |
void | set_error_threshold (double err_threshold) |
Between 0 and 1, threshold on jitter acceptability, higher accepts more jitter before discarding. | |
void | set_smoothing_factor (double smoothing_factor) |
Between 0 and 1, bigger is smoother. | |
ros::Time | smooth_timestamp (ros::Time recv_timestamp, ros::Duration expctd_dur) |
smoothtime () | |
Protected Attributes | |
double | error_threshold |
ros::Time | smoothed_timestamp |
ros::Time | smoothtime_prev |
double | time_smoothing_factor |
Definition at line 60 of file sickld.cpp.
smoothtime::smoothtime | ( | ) | [inline] |
slowly skew the clocks into sync
50% jitter is acceptable for , discard data otherwise.
Definition at line 67 of file sickld.cpp.
void smoothtime::set_error_threshold | ( | double | err_threshold | ) | [inline] |
Between 0 and 1, threshold on jitter acceptability, higher accepts more jitter before discarding.
Definition at line 76 of file sickld.cpp.
void smoothtime::set_smoothing_factor | ( | double | smoothing_factor | ) | [inline] |
Between 0 and 1, bigger is smoother.
Definition at line 72 of file sickld.cpp.
ros::Time smoothtime::smooth_timestamp | ( | ros::Time | recv_timestamp, |
ros::Duration | expctd_dur | ||
) | [inline] |
Definition at line 79 of file sickld.cpp.
double smoothtime::error_threshold [protected] |
Definition at line 64 of file sickld.cpp.
ros::Time smoothtime::smoothed_timestamp [protected] |
Definition at line 62 of file sickld.cpp.
ros::Time smoothtime::smoothtime_prev [protected] |
Definition at line 62 of file sickld.cpp.
double smoothtime::time_smoothing_factor [protected] |
Definition at line 63 of file sickld.cpp.