1 #ifndef TIMESTAMPSYNCHRONIZER_H 2 #define TIMESTAMPSYNCHRONIZER_H 34 #include <timesync/TimesyncDebug.h> 59 double sync(
double currentSensorTime,
double currentRosTime,
unsigned int seqNumber_external);
70 void setEarlyClamp(
bool earlyClamp,
int earlyClampWindow = 0);
87 bool useMedianFilter =
true;
89 bool useHoltWinters =
true;
90 double alfa_HoltWinters = 1e-3;
91 double beta_HoltWinters = 1e-4;
92 double alfa_HoltWinters_early = 1e-1;
93 double beta_HoltWinters_early = 1e-2;
94 bool earlyClamp =
true;
96 double timeOffset = 0.0;
TimestampSynchronizer(const Options defaultOptions=Options())
double previousSensorTime_
void setTimeOffset(double timeOffset)
void setUseHoltWinters(bool useHoltWinters)
void setEarlyClamp(bool earlyClamp, int earlyClampWindow=0)
double initialB_HoltWinters
void setAlfa_HoltWinters(double alfa_HoltWinters)
double sync(double currentSensorTime, double currentRosTime, unsigned int seqNumber_external)
HoltWintersSmoothFilter holtWinters_
void setAlfa_HoltWinters_early(double alfa_HoltWinters_early)
void setBeta_HoltWinters(double beta_HoltWinters)
void setMedianFilter(bool useMedianFilter, int medianFilterWindow=0)
std::unique_ptr< Mediator< double > > pmediator_
ros::Publisher debugPublisher_
void setBeta_HoltWinters_early(double beta_HoltWinters_early)