Dan, <br>Generating the clock message from the original carmen logs sounds like the right thing to do in this case.  The very old messages will be tossed out on receipt in the costmap_2d tf::MessageFilters because they are way out of date.  <br>

<br>To publish time it's simpy a roslib/Clock message on the /clock topic it's documented at <a href="http://www.ros.org/wiki/Clock">http://www.ros.org/wiki/Clock</a>  <br><br>Tully<br><br><div class="gmail_quote">

On Mon, Apr 19, 2010 at 11:17 AM, Daniel Maier <span dir="ltr"><<a href="mailto:maierd@informatik.uni-freiburg.de">maierd@informatik.uni-freiburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

On Mon, 19 Apr 2010 19:26:17 +0200, Tully Foote <<a href="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</a>><br>
wrote:<br>
<div class="im"><br>
> Dan,<br>
> I think your problem can be solved by settting the parameter<br>
> /use_sim_time<br>
> to true.  This will make ros::Time::now() return simulation time as<br>
> broadcast by the bag file or stageros or gazebo on the /clock topic,<br>
> instead<br>
> of the system time.  For more info see <a href="http://www.ros.org/wiki/Clock" target="_blank">http://www.ros.org/wiki/Clock</a><br>
><br>
> Tully<br>
<br>
</div>Hi Tully,<br>
<br>
I already set /use_sim_time in my launch file to true and "rosparam get<br>
/use_sim_time" returns true. So this did not help.<br>
However, this lead me to finding a stupid mistake I made:<br>
<br>
What I have is carmen logfile I playback using the carmen module<br>
play_carmen.<br>
I created a ros node (carmen_ros_proxy) which subscribes to carmen<br>
messages and republishes them as ros messages keeping the original carmen<br>
timestamp.<br>
I then recorded a bag file by calling rosbag -a containing my republished<br>
sensor readings.<br>
However, this bagfile does only record the clock at the time I<br>
played the messages back but not the clock at the time the messages where<br>
originally sent (of course).<br>
I tried playing back the carmen log file and calling the costmap node<br>
while running carmen_ros_proxy. Now I get no warnings but also no laser<br>
callbacks.<br>
So I guess I need to publish the /clock message (how?) in my<br>
carmen_ros_proxy or something like that?<br>
<br>
Sorry for the confusion,<br>
Dan<br>
</blockquote></div><br>