Signal containing a set of matrices. More...
#include <signals.h>
Public Types | |
using | ConstPtr = std::shared_ptr< const MatrixSetSignal > |
using | Map = std::map< int, std::vector< double > > |
using | Ptr = std::shared_ptr< MatrixSetSignal > |
![]() | |
using | ConstPtr = std::shared_ptr< const SignalInterface > |
using | Ptr = std::shared_ptr< SignalInterface > |
Public Member Functions | |
void | add (MatrixSignal::Ptr &matrix_signal) |
Add matrix signal. More... | |
void | add (const Eigen::Ref< const Eigen::MatrixXd > &matrix, const std::string &label="") |
Add matrix from Eigen type. More... | |
void | clear () |
const std::vector< MatrixSignal::Ptr > & | getData () const |
Read access to the underlying map object. More... | |
std::vector< MatrixSignal::Ptr > & | getDataRef () |
Write access to the underlying map (use with care) More... | |
SignalType | getType () const override |
Get the signal type according to enumeration SignalType. More... | |
bool | isEmpty () const |
Check if the underlying map is empty. More... | |
MatrixSetSignal ()=default | |
Default constructor. More... | |
![]() | |
virtual void | getValueLabels (std::vector< std::string > &sublabels) const |
Return labels for the underlying components of the signal (e.g. axes labels) More... | |
virtual | ~SignalInterface () |
Virtual destructor. More... | |
Private Attributes | |
std::vector< MatrixSignal::Ptr > | _matrix_set |
Additional Inherited Members | |
![]() | |
SignalHeader | header |
The header of the signal. More... | |
Signal containing a set of matrices.
using corbo::MatrixSetSignal::ConstPtr = std::shared_ptr<const MatrixSetSignal> |
using corbo::MatrixSetSignal::Map = std::map<int, std::vector<double> > |
using corbo::MatrixSetSignal::Ptr = std::shared_ptr<MatrixSetSignal> |
|
default |
Default constructor.
void corbo::MatrixSetSignal::add | ( | MatrixSignal::Ptr & | matrix_signal | ) |
Add matrix signal.
Definition at line 252 of file signals.cpp.
void corbo::MatrixSetSignal::add | ( | const Eigen::Ref< const Eigen::MatrixXd > & | matrix, |
const std::string & | label = "" |
||
) |
Add matrix from Eigen type.
Definition at line 254 of file signals.cpp.
|
inline |
|
inline |
|
inlineoverridevirtual |
Get the signal type according to enumeration SignalType.
Implements corbo::SignalInterface.
|
inline |
|
private |