-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is related to: gazebosim/gazebo_test_cases#1640 During the refactor of the SimulationRunner we seem to have broken log playback. In our current set up we need a sdf world to start a SimulationRunner. This sdf world is used for parameterizing which services and topics the server should advertise on. The client GUI then queries the server for unning worlds derived from SDFs. Unfortunately, when playing back from a log file, no SDF world is available. All the world information comes directly from the log file. Unfortunately, this means that when we start a playback session the server always responds to the client with a default world. The client then proceeds to listen for the state on `/world/default/state`, however once the server proceeds to run the log files, it publishes the state on `/world/log_pendulum/state`. The current work around this PR proposes is to read the log file during initialization prior to setting up the transport topics. We then set up the relevant topics. There are probably better ways of handling such behaviour, but given the limited time this seemed to be the quickest way to restore functionality. Signed-off-by: Arjo Chakravarty <[email protected]>
- Loading branch information
Showing
2 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters