Time Series signal (trajectory resp. sequence of values w.r.t. time)
More...
#include <signals.h>
Time Series signal (trajectory resp. sequence of values w.r.t. time)
A time series is meant to represent a sequence of vectors of floating point numbers with individual time stamps. A time series might also be interpreted as a discrete-time trajectory. This class wraps a TimeSeries object into a signal along with a SignalHeader.
- See also
- TimeSeries SignalInterface Measurement
- Author
- Christoph Rösmann (chris.nosp@m.toph.nosp@m..roes.nosp@m.mann.nosp@m.@tu-d.nosp@m.ortm.nosp@m.und.d.nosp@m.e)
Definition at line 244 of file signals.h.
◆ ConstPtr
◆ Ptr
◆ TimeSeriesSignal() [1/4]
corbo::TimeSeriesSignal::TimeSeriesSignal |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 251 of file signals.h.
◆ TimeSeriesSignal() [2/4]
corbo::TimeSeriesSignal::TimeSeriesSignal |
( |
int |
value_dim | ) |
|
|
inlineexplicit |
Construct empty time series signal with a dresired value vector dimension.
Definition at line 253 of file signals.h.
◆ TimeSeriesSignal() [3/4]
Construct time series signal from a time_series object (avoids copying)
Definition at line 255 of file signals.h.
◆ TimeSeriesSignal() [4/4]
corbo::TimeSeriesSignal::TimeSeriesSignal |
( |
const Measurement & |
measurment | ) |
|
|
inlineexplicit |
Constructs and initializes time series signal and adds a single measurement.
Definition at line 257 of file signals.h.
◆ add() [1/3]
void corbo::TimeSeriesSignal::add |
( |
const Measurement & |
measurement | ) |
|
Add measurement (time and value pair)
Definition at line 63 of file signals.cpp.
◆ add() [2/3]
void corbo::TimeSeriesSignal::add |
( |
double |
time, |
|
|
const Eigen::Ref< const Eigen::VectorXd > & |
values |
|
) |
| |
◆ add() [3/3]
void corbo::TimeSeriesSignal::add |
( |
double |
time, |
|
|
const std::vector< double > & |
values |
|
) |
| |
Add time and value vector pair (STL version)
Definition at line 80 of file signals.cpp.
◆ getTimeSeries()
const TimeSeries* corbo::TimeSeriesSignal::getTimeSeries |
( |
| ) |
const |
|
inline |
Read access to the underlying time series object (returns null if not initialized)
Definition at line 298 of file signals.h.
◆ getTimeSeriesPtr()
Return shared pointer of the underlying time series (can be empty if not initialized)
Definition at line 303 of file signals.h.
◆ getTimeSeriesRaw()
TimeSeries* corbo::TimeSeriesSignal::getTimeSeriesRaw |
( |
| ) |
|
|
inline |
Raw access to the underlying time series object (returns null if not initialized)
Definition at line 300 of file signals.h.
◆ getType()
SignalType corbo::TimeSeriesSignal::getType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getValueLabels()
void corbo::TimeSeriesSignal::getValueLabels |
( |
std::vector< std::string > & |
sublabels | ) |
const |
|
inlineoverridevirtual |
◆ isEmpty()
bool corbo::TimeSeriesSignal::isEmpty |
( |
| ) |
const |
|
inline |
Check if the time series is empty.
Definition at line 260 of file signals.h.
◆ set() [1/2]
Set time series (and override any existing)
Definition at line 279 of file signals.h.
◆ set() [2/2]
void corbo::TimeSeriesSignal::set |
( |
const Eigen::Ref< const Eigen::VectorXd > & |
time, |
|
|
const Eigen::Ref< const Eigen::MatrixXd > & |
values_matrix, |
|
|
double |
time_from_start = 0.0 |
|
) |
| |
◆ setTimeFromStart()
void corbo::TimeSeriesSignal::setTimeFromStart |
( |
double |
time_from_start | ) |
|
Set time from start (offset to all time stamps in time())
Definition at line 93 of file signals.cpp.
◆ _time_series
The documentation for this class was generated from the following files: