Instead of changing the bag file time stamps, you should use simulated time. See <a 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 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 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></blockquote></div><br>