"use_sim_time" parameter disabled tf [closed]
Hello,every one,
After I added <param name ="/use_sim_time" value="true"/>
in my launch file,the rviz can not show the tf tree and there was an error in the RobotModel:No transform from [base_laser]to[odom]
and a warning in Global Status: No tf data.Actual error:Fixed Frame [odom] does not exist
.
When I entered rostopic echo /tf
,there was a warning :no messages received and simulated time is active.Is /clock being published?
So the root cause is the clock message not be published.How can I publish the /clock messages ?
Thanks in advance!
Do you play a bagfile? Can you please edit your question and add some of the commands you execute?
No,I did not play any bagfile. How can I publish the clock message? Will the bagfile publish a clock message?
@redskydeng What were you trying to achieve by setting
use_sim_time
?I am using the gazebo.Should I write some codes to publish the /clock topic?