gz/transport/log/Playback.hh
Go to the documentation of this file.
A class for customizing the behavior of the Node. E.g.: Set a custom namespace or a partition name.
Definition: gz/transport/NodeOptions.hh:39
Handles the playback of ignition transport topics. This class allows you to manage a log playback onc...
Definition: gz/transport/log/Playback.hh:160
void Seek(const std::chrono::nanoseconds &_newElapsedTime)
Jump current playback time to a specific elapsed time.
std::chrono::nanoseconds EndTime() const
Gets end time of the log being played.
std::chrono::nanoseconds StartTime() const
Gets start time of the log being played.
bool Finished() const
Check if this playback is finished.
void Step(const std::chrono::nanoseconds &_stepDuration)
Step the playback by a given amount of nanoseconds.
std::chrono::nanoseconds CurrentTime() const
Gets current time of the log being played.
void WaitUntilFinished()
Block until playback runs out of messages to publish.
Initiates playback of ignition transport topics This class makes it easy to play topics from a log fi...
Definition: gz/transport/log/Playback.hh:44
Playback(const std::string &_file, const NodeOptions &_nodeOptions=NodeOptions())
Constructor.
int64_t AddTopic(const std::regex &_topic)
Add a topic to be played back (regex match)
bool Valid() const
Check if this Playback object has a valid log to play back.
bool AddTopic(const std::string &_topic)
Add a topic to be played back (exact match only)
int64_t RemoveTopic(const std::regex &_topic)
Remove all topics matching the specified pattern from being played back.
PlaybackHandlePtr Start(const std::chrono::nanoseconds &_waitAfterAdvertising=std::chrono::seconds(1), bool _msgWaiting=true) const
Begin playing messages.
bool RemoveTopic(const std::string &_topic)
Remove a topic from being played back.
Definition: gz/transport/log/Batch.hh:28