[Rock-dev] Adding "Simple" timestamped values
Janosch Machowinski
Janosch.Machowinski at dfki.de
Wed Aug 10 16:29:59 CEST 2011
On 10.08.2011 11:59, Willy Lambert wrote:
>
> I am interested in details about this. I have often thougth about such
> solution when receiving information from hardware that are computed
> later. Because what is often enougth is to have a precise timestamp
> of all your measures, computing later is not a problem. What do you do
> in such a context ?
We have a helper class called TimestampEstimator. It is part of the
drivers/aggregator package.
This class tries to estimate the correct timestamp. To do this we use
the assumption, that the sensor will provide data on a periodic basis.
Given the period, the TimestampEstimator will compensate for jitter
on the transmission (packets arriving +-Xms around the real time),
and compensate for the clock differences (e.g. sensor firing every 29.5ms
not ever 30ms, from point of view of the PC).
If you also have a way of providing a hard realtime timestamp (in our
case a special
microcontroller board that watches the sensor trigger line), you may
also provide this to the
TimestampEstimator. In this case the TimestampEstimator will try to
estimate
the latency of the incoming data and compensate for it.
I hope this answered your questions
Janosch
P.S.: Pierre, if anything I just said is bloody wrong, feel free to
correct me ;-P
--
Dipl. Inf. Janosch Machowinski
SAR-& Sicherheitsrobotik
DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Phone: +49 (0)421 178 45-6614
Fax: +49 (0)421 178 45-4150
E-Mail: robotik at dfki.de
Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------
More information about the Rock-dev
mailing list