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 56 of file trace-player.hh.
|
protected |
Definition at line 88 of file trace-player.hh.
|
protected |
Definition at line 89 of file trace-player.hh.
|
protected |
Definition at line 87 of file trace-player.hh.
typedef dynamicgraph::Signal<dynamicgraph::Vector, int> OutputSignalType |
Definition at line 67 of file trace-player.hh.
TracePlayer | ( | const std::string & | name | ) |
Definition at line 33 of file trace-player.cpp.
void addOutputSignal | ( | const std::string & | fileName, |
const std::string & | signalName | ||
) |
Definition at line 72 of file trace-player.cpp.
void clear | ( | ) |
Definition at line 170 of file trace-player.cpp.
DECLARE_SIGNAL_OUT | ( | trigger | , |
int | |||
) |
|
virtual |
Definition at line 183 of file trace-player.cpp.
void init | ( | const double & | dt | ) |
void playNext | ( | ) |
Definition at line 141 of file trace-player.cpp.
void rewind | ( | ) |
Definition at line 160 of file trace-player.cpp.
|
inline |
Definition at line 81 of file trace-player.hh.
|
protected |
Definition at line 91 of file trace-player.hh.
|
protected |
Definition at line 92 of file trace-player.hh.
std::map<std::string, OutputSignalType*> m_outputSignals |
Definition at line 68 of file trace-player.hh.