<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Thanks Patrick.<br>It worked.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Patrick Mihelich <mihelich@willowgarage.com><br><b><span style="font-weight: bold;">To:</span></b> User discussions <ros-users@code.ros.org><br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, October 13, 2010 15:53:42<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [ros-users] rosbag play help<br></font><br>Instead of changing the bag file time stamps, you should use simulated time. See <a rel="nofollow" target="_blank"
 href="http://www.ros.org/wiki/Clock">http://www.ros.org/wiki/Clock</a>.<br><br>Short version:<br> - Before launching any nodes, set parameter /use_sim_time to True.<br>
 - Use the --clock option of rosbag play.<br><br>Then rosbag will publish the simulated time on the /clock topic. All nodes using ROS time will use the simulated time instead of wall-clock time.<br><br>Cheers,<br>Patrick<br>
<br><div class="gmail_quote">On Tue, Oct 12, 2010 at 11:41 PM, Peshala Jayasekara <span dir="ltr"><<a rel="nofollow" ymailto="mailto:peshala_24@yahoo.com" target="_blank" href="mailto:peshala_24@yahoo.com">peshala_24@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);"><div>Hi all,<br><br>I want to know if there is a way to change the time stamp of a bagfile when you play it.<br>For example, when you run robot_pose_ekf of navigation stack, it compares current time with sensor time stamps and it will not update the filter for old sensor data.<br>
<br>Thank you in advance.<br>Peshala<br><br><br></div>
</div><br></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a rel="nofollow" ymailto="mailto:ros-users@code.ros.org" target="_blank" href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a rel="nofollow" target="_blank" href="https://code.ros.org/mailman/listinfo/ros-users">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>
</div></div>
</div><br></body></html>