Dejan, <div>The tf tree maintains state about the tree including sorted lists.  If "old" data comes in it is discarded.  Thus if your bag is longer in time than the tf cache it will throw out data which is older than the cache time from the most recent timestamped message received.  In general, time going backwards doesn't have a defined behavior.  </div>

<div><br></div><div>Tully<br><br><div class="gmail_quote">On Sun, May 2, 2010 at 9:48 AM, Dejan Pangercic <span dir="ltr"><<a href="mailto:dejan.pangercic@gmail.com">dejan.pangercic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi there,<br>
<br>
I worked through the following tutorial today:<br>
<a href="http://www.ros.org/wiki/image_geometry/Tutorials/ProjectTfFrameToImage" target="_blank">http://www.ros.org/wiki/image_geometry/Tutorials/ProjectTfFrameToImage</a><br>
and wanted to loopplay provided bag file using following command:<br>
"while true; do rosbag play plug_on_base.bag --clock; sleep 0.1;<br>
rostopic pub /reset_time std_msgs/Empty -1; done"<br>
Loopplay and time-reset works but it seems that it hangs the TF tree,<br>
i.e. from the first repetition on it never goes pass the following<br>
line of code in the tutorial:<br>
"tf_listener_.waitForTransform(cam_model_.tfFrame(), frame_id,<br>
                                      acquisition_time, timeout);"<br>
<br>
Anyone seeing something obvious?<br>
<br>
cheers, D.<br>
<div><div></div><div class="h5">On Thu, Apr 29, 2010 at 1:53 AM, Dan Lazewatsky<br>
<<a href="mailto:lazewatskyd@cse.wustl.edu">lazewatskyd@cse.wustl.edu</a>> wrote:<br>
> <a href="https://code.ros.org/discuss/ros-users/browse_frm/thread/1103/4095" target="_blank">https://code.ros.org/discuss/ros-users/browse_frm/thread/1103/4095</a><br>
><br>
> On 4/28/10 6:52 PM, Stuart Glaser wrote:<br>
><br>
> while [ 1 ]; do rosbag play X.bag; sleep 1; done<br>
><br>
> Not particularly satisfying, but it's what I use.<br>
><br>
> -Stu<br>
><br>
> On Wed, Apr 28, 2010 at 4:43 PM, Adam Leeper <<a href="mailto:aleeper@stanford.edu">aleeper@stanford.edu</a>> wrote:<br>
><br>
><br>
> Hi all-<br>
> Is there a way to get rosbag to play a bag file on loop? It would be handy<br>
> when testing things to be able to run my collected data continuously.<br>
> Thanks!<br>
> --Adam<br>
><br>
> Adam Leeper<br>
> Stanford University<br>
> <a href="mailto:aleeper@stanford.edu">aleeper@stanford.edu</a><br>
> 719.358.3804<br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
MSc. Dejan Pangercic<br>
PhD Student/Researcher<br>
Computer Science IX<br>
Technische Universität München<br>
Telephone: +49 (89) 289-17780<br>
E-Mail: <a href="mailto:dejan.pangercic@in.tum.de">dejan.pangercic@in.tum.de</a><br>
WWW: <a href="http://ias.cs.tum.edu/people/pangercic" target="_blank">http://ias.cs.tum.edu/people/pangercic</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tully Foote<br>Systems Engineer<br>Willow Garage, Inc.<br><a href="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</a><br>(650) 475-2827<br>
</div>