Hai, <div>The tf library is not robust to time jumping backwards.  The first time you playback it will work, but the second time time the incoming data will be older than the tf buffer and be tossed on on reciept. <a href="http://www.ros.org/wiki/tf/Errors%20explained#Error:_TF_OLD_DATA">http://www.ros.org/wiki/tf/Errors%20explained#Error:_TF_OLD_DATA</a></div>

<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Tully<br><br><div class="gmail_quote">On Tue, Jul 27, 2010 at 12:35 PM, Hai Nguyen <span dir="ltr"><<a href="mailto:haidai@gmail.com">haidai@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,<br>
Hi,<br>
<br>
I'm trying to assemble some laser scans into a point cloud using<br>
laser_assembler tutorial [1] but the periodic_snapshotter keeps<br>
reporting that it is only publishing empty messages with zero points:<br>
    [ INFO] [1280258736.674914761, 1275001489.217034967]: Published<br>
Cloud with 0 points<br>
<br>
On closer investigation this seems to be caused by a TF_OLD_DATA error<br>
generated by scan_assembler.  Is there a recent change to how the time<br>
mechanism works in ROS?  I'm running all these nodes on the same<br>
computer, using --clock with "rosbag play" (on the provided bag file<br>
laser.bag), and tried to run with /use_sim_time=True but the error<br>
still persist.<br>
<br>
TF error:<br>
Node: /scan_assembler<br>
Time: 1275001492.698066055<br>
Severity: Warn<br>
Location: /opt/ros/cturtle/stacks/geometry/tf/src/tf.cpp:Transformer::setTransform:179<br>
Published Topics: /rosout<br>
<br>
TF_OLD_DATA ignoring data from the past for frame /sensor_mount_link<br>
at time 1.275e+09 according to authority /play_1280258731455287347<br>
Possible reasons are listed at<br>
<br>
My launch file for laser_assembler:<br>
<launch><br>
<node pkg="laser_assembler" type="point_cloud_assembler" name="scan_assembler"><br>
    <remap from="scan" to="tilt_scan"/><br>
    <param name="fixed_frame" value="base_footprint"/><br>
</node><br>
</launch><br>
<br>
<br>
<br>
[1] <a href="http://www.ros.org/wiki/laser_assembler/Tutorials/HowToAssembleLaserScans" target="_blank">http://www.ros.org/wiki/laser_assembler/Tutorials/HowToAssembleLaserScans</a><br>
<font color="#888888">--<br>
Hai Nguyen<br>
CS, Robotics<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>
</font></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>