Open and playback log files that were recorded using Logger. More...
#include <LogPlay.hh>
Public Member Functions | |
| Iterator | Begin () |
| Get an iterator to the beginning of the log file. | |
| Iterator | End () |
| Get an iterator to the end of the log file. | |
| bool | Open (const std::string &_logFile) |
| Open a log file for reading. | |
| bool | Play (WorldPtr _world) |
| Play a log file in a given World. | |
| bool | Play (WorldPtr _world, const std::string &_entityName) |
| Play a log file in a given World using only data for a given entity. | |
| bool | Play (WorldPtr _world, const std::list< std::string > &_entityNames) |
| Play a log file in a given World using only data for a list of entities. | |
| bool | Play (WorldPtr _world, common::Time _start, common::Time _stop) |
| Play a segment of a log file in a given World. | |
| bool | Play (WorldPtr _world, const std::string &_entityName, common::Time _start, common::Time _stop) |
| Play a segment of a log file in a given World using only data for a given entity. | |
| bool | Play (WorldPtr _world, const std::list< std::string > &_entityNames, common::Time _start, common::Time _stop) |
| Play a segment of a log file in a given World using only data for a list of entities. | |
Open and playback log files that were recorded using Logger.
Use Logplay to open a log file (Logplay::Open), and access the recorded state information. Iterators are available to step through the state information. It is also possible to replay the data in a World using the Play functions. Replay involves reading and applying state information to a World.
| Iterator gazebo::physics::Logplay::Begin | ( | ) |
Get an iterator to the beginning of the log file.
Requires a log file to be opened first. Use the iterator to step through a log file.
| Iterator gazebo::physics::Logplay::End | ( | ) |
Get an iterator to the end of the log file.
Requires a log file to be opened first Use the iterator to step through a log file.
| bool gazebo::physics::Logplay::Open | ( | const std::string & | _logFile | ) |
Open a log file for reading.
Open a log file that was previously recorded.
| _logFile | The file to load |
| bool gazebo::physics::Logplay::Play | ( | WorldPtr | _world | ) |
Play a log file in a given World.
Replay a complete log file in a World. Requires a log file to be opened first,
| _world | Pointer to the World |
| bool gazebo::physics::Logplay::Play | ( | WorldPtr | _world, |
| const std::string & | _entityName | ||
| ) |
Play a log file in a given World using only data for a given entity.
Replay a log file in a World, but only apply data for the given entity. Requires a log file to be opened first
| _world | Pointer to the World |
| _entityName | Name of the entity to search the log for |
| bool gazebo::physics::Logplay::Play | ( | WorldPtr | _world, |
| const std::list< std::string > & | _entityNames | ||
| ) |
Play a log file in a given World using only data for a list of entities.
Replay a log file in a World, but only apply data for the given list of entities. Requires a log file to be opened first,
| _world | Pointer to the World |
| _entityNames | Names of the entities to search the log for |
| bool gazebo::physics::Logplay::Play | ( | WorldPtr | _world, |
| common::Time | _start, | ||
| common::Time | _stop | ||
| ) |
Play a segment of a log file in a given World.
Replay a segment of log file in a World. The segment is defined by a start and end time, where time is simulation time. Requires a log file to be opened first,
| _world | Pointer to the World. |
| _start | Start time, in simulation time. |
| _stop | Stop time, in simulation time. |
| bool gazebo::physics::Logplay::Play | ( | WorldPtr | _world, |
| const std::string & | _entityName, | ||
| common::Time | _start, | ||
| common::Time | _stop | ||
| ) |
Play a segment of a log file in a given World using only data for a given entity.
Replay a segment of log file in a World, but only apply data for the given entity. The segment is defined by a start and end time, where time is simulation time. Requires a log file to be opened first,
| _world | Pointer to the World. |
| _entityName | Name of the entity to search the log for |
| _start | Start time, in simulation time. |
| _stop | Stop time, in simulation time. |
| bool gazebo::physics::Logplay::Play | ( | WorldPtr | _world, |
| const std::list< std::string > & | _entityNames, | ||
| common::Time | _start, | ||
| common::Time | _stop | ||
| ) |
Play a segment of a log file in a given World using only data for a list of entities.
Replay a segment of a log file in a World, but only apply data for the given list of entities. Requires a log file to be opened first,
| _world | Pointer to the World |
| _entityNames | Names of the entities to search the log for |
| _start | Start time, in simulation time. |
| _stop | Stop time, in simulation time. |