It looks like you've somehow set the "use_sim_time" parameter to true, but you don't have a clock source (ie: rosbag play --clock or some other source, like Gazebo).
Since you're using tf, WallTime isn't an option.
You can check the status of the use_sim_time parameter by using rosparam.
rosparam get use_sim_time
And if it is set somehow, you can reverse it by running:
rosparam set use_sim_time false
Originally posted by Chad Rockey with karma: 4541 on 2011-11-24
This answer was ACCEPTED on the original site
Post score: 8
Original comments
Comment by alfa_80 on 2011-11-24:
You're right..I've just changed the value in the launch file and that works..Thanks anyway.
Comment by alfa_80 on 2011-11-24:
Should I run/include this on in the launch file or running as a command? I've tried as a command, still not working..
Comment by v4hn on 2017-08-29:
Just one small addition because it confused one of my contacts:
If you use Gazebo this does not apply to you. Gazebo publishes the /clock topic for you.
Comment by Petros ADLATUS on 2022-04-08:
@Chad Rockey I have a question to your recommendation with the flaf of the use_sim_time
. In my launch file first I've set this to true, because I get the message about TF_OLD_DATA
while playing my recorded bag file
. But now I try to use a node and it seems, that the topics is published, but no messages are received (simulated time is active)