Insert a double pendulum and let it move for a bit
Record a log of the pendulum moving
Close gazebo then open a new gazebo loading the previously saved log and start paused (gazebo -u -p ~/.gazebo/log/<path>)
You'll see that the pendulum's initial pose is not the pose of the moment you started recording the log file, but the model's default starting pose. If you perform one step forward, you'll see a big jump to the actual starting pose.
This probably happens because the very first saved sample, unlike all subsequent ones, is not a world state, but the raw world SDF. And that world SDF is not being updated for new link poses.
Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
Insert a double pendulum and let it move for a bit
Record a log of the pendulum moving
Close gazebo then open a new gazebo loading the previously saved log and start paused (
gazebo -u -p ~/.gazebo/log/<path>
)You'll see that the pendulum's initial pose is not the pose of the moment you started recording the log file, but the model's default starting pose. If you perform one step forward, you'll see a big jump to the actual starting pose.
This probably happens because the very first saved sample, unlike all subsequent ones, is not a world state, but the raw world SDF. And that world SDF is not being updated for new link poses.