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!
Originally posted by redskydeng on ROS Answers with karma: 118 on 2015-07-23
Post score: 0
Original comments
Comment by mgruhler on 2015-07-24:
Do you play a bagfile?
Can you please edit your question and add some of the commands you execute?
Comment by redskydeng on 2015-07-25:
No,I did not play any bagfile.
How can I publish the clock message?
Will the bagfile publish a clock message?
Comment by Boris on 2015-07-26:
@redskydeng What were you trying to achieve by setting use_sim_time
?
Comment by redskydeng on 2015-07-29:
I am using the gazebo.Should I write some codes to publish the /clock topic?