tools
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | List of all members
PlaybackThread Class Reference

Implementation for the PlaybackThread.

#include <PlaybackThread.hpp>

Inheritance diagram for PlaybackThread:
roboticslab::IPlaybackThread roboticslab::Playback PlaybackThread_ParamsParser

Public Member Functions

bool open (yarp::os::Searchable &config) override
 
bool close () override
 
bool play () override
 
bool pause () override
 
bool stopPlay () override
 
bool isPlaying () override
 
bool setTimeScale (double timeScale) override
 
void setIRunnable (roboticslab::IRunnable *iRunnable) override
 
void run () override
 
void onStop () override
 
- Public Member Functions inherited from roboticslab::IPlaybackThread
virtual ~IPlaybackThread ()=default
 
- Public Member Functions inherited from PlaybackThread_ParamsParser
bool parseParams (const yarp::os::Searchable &config) override
 
std::string getDeviceClassName () const override
 
std::string getDeviceName () const override
 
std::string getDocumentationOfDeviceParams () const override
 
std::vector< std::string > getListOfParams () const override
 

Private Types

enum class  state { NOT_PLAYING , PLAYING }
 
- Private Types inherited from roboticslab::Playback
using row_t = std::vector< std::vector< double > >
 

Private Attributes

roboticslab::IRunnable_iRunnable {nullptr}
 
std::atomic< state > _state {state::NOT_PLAYING}
 

Additional Inherited Members

- Public Attributes inherited from PlaybackThread_ParamsParser
const std::string m_device_classname = {"PlaybackThread"}
 
const std::string m_device_name = {"PlaybackThread"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
const std::string m_file_defaultValue = {"test.txt"}
 
const std::string m_timeIdx_defaultValue = {"0"}
 
const std::string m_timeScale_defaultValue = {"1.0"}
 
const std::string m_mask_defaultValue = {""}
 
std::string m_file = {"test.txt"}
 
int m_timeIdx = {0}
 
double m_timeScale = {1.0}
 
std::vector< int > m_mask = {}
 
- Private Member Functions inherited from roboticslab::Playback
bool fromFile (const std::string &fileName)
 
std::size_t getNumRows () const
 
std::size_t getCurrentRowIndex () const
 
bool hasNextRow () const
 
const row_t::value_type & getNextRow ()
 
void reset ()
 

Member Function Documentation

◆ isPlaying()

bool PlaybackThread::isPlaying ( )
overridevirtual

◆ pause()

bool PlaybackThread::pause ( )
overridevirtual

◆ play()

bool PlaybackThread::play ( )
overridevirtual

◆ setIRunnable()

void PlaybackThread::setIRunnable ( roboticslab::IRunnable iRunnable)
overridevirtual

◆ setTimeScale()

bool PlaybackThread::setTimeScale ( double  timeScale)
overridevirtual

◆ stopPlay()

bool PlaybackThread::stopPlay ( )
overridevirtual

The documentation for this class was generated from the following files: