<font size=2 face="Verdana">Thanks for your replies Matthias and Sylvain,</font>
<br>
<br><font size=2 face="Verdana">I will look into the &quot;estimator&quot;
and the &quot;stream aligner&quot;. There are two main problems that i
am tackling here.</font>
<br><font size=2 face="Verdana">1) When data are synchronized (in hardware
and ROCK), how can we export them with the rock exporter so we create a
dataset other devs might want to use (rock-independently)?</font>
<br><font size=2 face="Verdana">2) When we have cameras that are hardware
synchronized, but we use two components (&quot;camera-firewire&quot;) to
read them, how can we give them exactly the same timestamp?</font>
<br>
<br><font size=2 face="Verdana">Let's handle the 1st problem. An easy example
I have is the following:</font>
<br><font size=2 face="Verdana">The bumblebee stereo camera has a stream
containing both left and right images so we are sure that the left-right
cameras are &quot;hardware synchronous&quot;:</font>
<br><font size=2 face="Verdana">The bb2 driver deinterlaces the two frames
and exports them to the appropriate port.. (sorry if the rock terminology
is wrong, I'm quite new)</font>
<br>
<br><font size=2 face="Verdana">The images are synchronous (obviously because
of the camera hardware) and the &quot;camera_firewire&quot; orogen component
outputs a single message to the &quot;camera_bb2&quot; orogen component.</font>
<br><font size=2 face="Verdana">In the &quot;camera_bb2&quot; source you
find that:</font>
<br><font size=2 face="sans-serif">| &nbsp; &nbsp; &nbsp; &nbsp;frame_left_ptr-&gt;received_time
= base::Time::now();</font>
<br><font size=2 face="sans-serif">| &nbsp; &nbsp; &nbsp; &nbsp;frame_right_ptr-&gt;received_time
= frame_left_ptr-&gt;received_time;</font>
<br><font size=2 face="Verdana">So they have the same timestamp assigned
to them.</font>
<br>
<br><font size=2 face="Verdana">When I log the data and then replay them
with the rock replay, I get exactly the same times on both &quot;time&quot;
and &quot;received_time&quot;, in the struct viewer, for both cameras.</font>
<br>
<br><font size=2 face="Verdana">Then, when I export the images with rock-export
&nbsp;(#TIME prefix) i get two images (left right) with the following names:</font>
<br>
<br><font size=2 face="sans-serif">Loccam_2015_08_28_17_22_23_600342_0.png,
with 2015_08_28_17_22_23_600342 being the timestamp.</font>
<br><font size=2 face="sans-serif">Loccam_2015_08_28_17_22_23_601391_2.png,
with 2015_08_28_17_22_23_601391 being the timestamp. (the timastamps differ
on a range 2000-3000 microseconds)</font>
<br>
<br><font size=2 face="Verdana">Now, if I understand how the rock-exporter
uses some kind of time to convert it to the string in the line 118 of /log_tools/lib/log_tools/exporter.rb:</font>
<br><font size=2 face="sans-serif">| &nbsp; &nbsp; &nbsp; &nbsp;name.gsub(&quot;#TIME&quot;,Time.at(rt).strftime(&quot;%Y_%m_%d_%H_%M_%S_%6N&quot;))</font>
<br>
<br><font size=2 face="Verdana">So, I guess that the problem is in this
&quot;rt&quot; from the above code line. It seems like it is not one of
those that the stream struct has...</font>
<br>
<br><font size=2 face="Verdana">Thanks,</font>
<br><font size=2 face="Verdana">Evangelos.</font>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Sylvain Joyeux&quot;
&lt;bir.sylvain@gmail.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Evangelos.Boukas@esa.int</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;rock-dev@dfki.de&quot;
&lt;rock-dev@dfki.de&gt;, Rob.Hewitt@esa.int</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">09/09/2015 14:53</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Rock-dev]
ROCK loging and dataset creation.</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>&gt; Even thought the images are actually synchronised
(I can see it from the<br>
&gt; product), the timestamps i am getting are not the same because of
the<br>
&gt; aforementioned struct properties.<br>
<br>
I am not sure I understand what it means. Can you be more explicit<br>
(like, give an example) ?<br>
<br>
Sylvain<br>
</font></tt>
<br><PRE>This message and any attachments are intended for the use of the addressee or addressees only.
The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its
content is not permitted.
If you received this message in error, please notify the sender and delete it from your system.
Emails can be altered and their integrity cannot be guaranteed by the sender.

Please consider the environment before printing this email.
</PRE>