Entity to play data saved using a Tracer. More...
#include <sot/torque_control/trace-player.hh>
Public Types | |
typedef dynamicgraph::Signal< dynamicgraph::Vector, int > | OutputSignalType |
Public Member Functions | |
TracePlayer (const std::string &name) | |
void | addOutputSignal (const std::string &fileName, const std::string &signalName) |
void | clear () |
DECLARE_SIGNAL_OUT (trigger, int) | |
virtual void | display (std::ostream &os) const |
void | init (const double &dt) |
void | playNext () |
void | rewind () |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const char *="", int=0) |
Public Attributes | |
std::map< std::string, OutputSignalType * > | m_outputSignals |
Protected Types | |
typedef std::list< DataType > | DataHistoryType |
typedef DataHistoryType::const_iterator | DataPointerType |
typedef dynamicgraph::Vector | DataType |
Protected Attributes | |
std::map< std::string, DataHistoryType > | m_data |
std::map< std::string, DataPointerType > | m_dataPointers |
Entity to play data saved using a Tracer.
A typical use of this entity would be to call the command addOutputSignal for every file you previously saved with the Tracer. Then you can either call the command playNext, or you can call recompute on the output signal "trigger".
Definition at line 53 of file trace-player.hh.
|
protected |
Definition at line 83 of file trace-player.hh.
|
protected |
Definition at line 84 of file trace-player.hh.
|
protected |
Definition at line 82 of file trace-player.hh.
typedef dynamicgraph::Signal<dynamicgraph::Vector, int> OutputSignalType |
Definition at line 64 of file trace-player.hh.
TracePlayer | ( | const std::string & | name | ) |
Definition at line 32 of file trace-player.cpp.
References TracePlayer::addOutputSignal(), TracePlayer::clear(), TracePlayer::playNext(), and TracePlayer::rewind().
void addOutputSignal | ( | const std::string & | fileName, |
const std::string & | signalName | ||
) |
Definition at line 62 of file trace-player.cpp.
References TracePlayer::m_data, TracePlayer::m_dataPointers, and TracePlayer::m_outputSignals.
Referenced by TracePlayer::TracePlayer().
void clear | ( | ) |
Definition at line 148 of file trace-player.cpp.
References TracePlayer::m_data, TracePlayer::m_dataPointers, and TracePlayer::m_outputSignals.
Referenced by TracePlayer::TracePlayer().
DECLARE_SIGNAL_OUT | ( | trigger | , |
int | |||
) |
|
virtual |
Definition at line 160 of file trace-player.cpp.
void init | ( | const double & | dt | ) |
void playNext | ( | ) |
Definition at line 121 of file trace-player.cpp.
References TracePlayer::m_data, TracePlayer::m_dataPointers, and TracePlayer::m_outputSignals.
Referenced by TracePlayer::TracePlayer().
void rewind | ( | ) |
Definition at line 138 of file trace-player.cpp.
References TracePlayer::m_data, and TracePlayer::m_dataPointers.
Referenced by TracePlayer::TracePlayer().
|
inline |
Definition at line 77 of file trace-player.hh.
|
protected |
Definition at line 86 of file trace-player.hh.
Referenced by TracePlayer::addOutputSignal(), TracePlayer::clear(), TracePlayer::playNext(), and TracePlayer::rewind().
|
protected |
Definition at line 87 of file trace-player.hh.
Referenced by TracePlayer::addOutputSignal(), TracePlayer::clear(), TracePlayer::playNext(), and TracePlayer::rewind().
std::map<std::string, OutputSignalType*> m_outputSignals |
Definition at line 65 of file trace-player.hh.
Referenced by TracePlayer::addOutputSignal(), TracePlayer::clear(), and TracePlayer::playNext().