ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ros2 bag play simulation problems

asked 2022-11-15 11:17:03 -0500

lfb gravatar image

updated 2022-11-16 17:22:50 -0500

ljaniec gravatar image

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!
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2022-11-16 07:13:16 -0500

RobotDreams gravatar image

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.

edit flag offensive delete link more

Comments

Thanks @RobotDreams! so, should I ignore Gazebo?

lfb gravatar image lfb  ( 2022-11-16 07:30:12 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-15 11:17:03 -0500

Seen: 102 times

Last updated: Nov 16 '22