Robotics StackExchange | Archived questions

ros2 bag play simulation problems

Hi everyone,

I'm trying to record all the information needed for a navigation problem. To this purpose, I've checked all the topics that are involved by executing

ros2 topic list

and, after that, I've recorded them with the ros2 bag tool. When playing this utility with the recorded information, although the robot's behavior on Rviz seems to be ok, on Gazebo is random. I've checked that the /initialpose topic is ok and that the recorded topics' QoS are also settled properly. Thanks in advance.

On Gazebo, I receive the warning

[robot_state_publisher-3] [WARN] [1668532897.204232561] [robot_state_publisher]: Moved backwards in time, re-publishing joint transforms!

Asked by lfb on 2022-11-15 12:17:03 UTC

Comments

Answers

I’m new to gazebo, but can afford a guess:
1) Gazebo sim starts up setting some “current sim time”.
2) Your play from bag issues recorded topics (having time stamps of prior sim times).
3) Gazebo resets “sim time” to the time stamp of the first topic.

Asked by RobotDreams on 2022-11-16 08:13:16 UTC

Comments

Thanks @RobotDreams! so, should I ignore Gazebo?

Asked by lfb on 2022-11-16 08:30:12 UTC