Class vicon_transformer::PlaybackReceiver¶
-
class PlaybackReceiver : public vicon_transformer::Receiver¶
Load frames from a recorded file and play it back.
To record frames from the live system, use the
vicon_record
executable.Public Functions
- Parameters:
filename – Path to the recorded file.
logger – A logger instance used for logging output. If not set, a logger with name “ViconReceiver” used.
-
virtual ViconFrame read() override¶
Get next frame from the recorded file.
- Throws:
std::out_of_range – if end of the recording is reached.
- Returns:
Next frame from the recorded file.
-
PlaybackReceiver(const std::filesystem::path &filename, std::shared_ptr<spdlog::logger> logger = nullptr)
- Parameters:
filename – Path to the recorded file.
logger – A logger instance used for logging output. If not set, a logger with name “ViconReceiver” used.
-
virtual ViconFrame read() override
Get next frame from the recorded file.
- Throws:
std::out_of_range – if end of the recording is reached.
- Returns:
Next frame from the recorded file.