Plays back a checkpoint over time, based on recorded TOI.
More...
#include <CheckpointPlayer.h>
Plays back a checkpoint over time, based on recorded TOI.
Definition at line 117 of file CheckpointPlayer.h.
◆ CheckpointPlayer() [1/4]
◆ CheckpointPlayer() [2/4]
◆ ~CheckpointPlayer()
madara::knowledge::CheckpointPlayer::~CheckpointPlayer |
( |
| ) |
|
|
inline |
◆ CheckpointPlayer() [3/4]
madara::knowledge::CheckpointPlayer::CheckpointPlayer |
( |
const CheckpointPlayer & |
| ) |
|
|
delete |
◆ CheckpointPlayer() [4/4]
◆ init_reader()
void madara::knowledge::CheckpointPlayer::init_reader |
( |
| ) |
|
|
inlineprivate |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ play_until()
bool madara::knowledge::CheckpointPlayer::play_until |
( |
uint64_t |
target_toi | ) |
|
Loads values from checkpoint until it reaches or exceeds toi given.
Do not call while playback is active. Call before calling start().
- Returns
- true if target_toi is reached before hitting end of checkpoint. false otherwise.
Definition at line 499 of file CheckpointPlayer.cpp.
◆ start()
void madara::knowledge::CheckpointPlayer::start |
( |
| ) |
|
|
inline |
Start playback.
If settings.playback_simtime is set, and macro MADARA_FEATURE_SIMTIME is set, current simtime will be set to the TOI of the first record. Rate of playback is equal to the simtime rate, which can be modified during playback.
Definition at line 171 of file CheckpointPlayer.h.
◆ stop()
void madara::knowledge::CheckpointPlayer::stop |
( |
| ) |
|
|
inline |
◆ thread_main()
void madara::knowledge::CheckpointPlayer::thread_main |
( |
CheckpointPlayer * |
self | ) |
|
|
staticprivate |
◆ context_
◆ keep_running_
std::atomic_flag madara::knowledge::CheckpointPlayer::keep_running_ |
|
private |
◆ reader_
◆ settings_
◆ thread_
std::thread madara::knowledge::CheckpointPlayer::thread_ |
|
private |
◆ update_settings_
The documentation for this class was generated from the following files: