Go to the documentation of this file.
25 #ifndef SRC_CORE_INCLUDE_CORBO_CORE_COMMON_SIGNAL_TARGET_H_
26 #define SRC_CORE_INCLUDE_CORBO_CORE_COMMON_SIGNAL_TARGET_H_
32 #include <unordered_map>
53 class CommonSignalTarget :
public SignalTargetInterface
62 SignalGroup*
parent =
nullptr;
65 using Ptr = std::shared_ptr<CommonSignalTarget>;
72 bool zero_order_hold =
false)
override
77 void registerTimeSeries(
const std::string& ,
int ,
bool zero_order_hold =
false)
override {}
100 SignalGroup*
getGroup(
const std::string& full_group_name);
140 #endif // SRC_CORE_INCLUDE_CORBO_CORE_COMMON_SIGNAL_TARGET_H_
std::shared_ptr< MatrixSignal > Ptr
void sendIndexedValuesSet(IndexedValuesSetSignal::Ptr indexed_values_set) override
Send signal containing a set of values indexed by integers (int to double[] map)
std::shared_ptr< SignalInterface > Ptr
SignalGroup * expandGroups(const std::string full_signal_name, std::string *signal_name_out=nullptr, SignalInterface::Ptr *signal=nullptr)
Parse full signal name, create tree-sub-groups if not found and return related signal group.
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
std::shared_ptr< CommonSignalTarget > Ptr
Virtual destructor.
void sendMeasurement(Measurement::ConstPtr measurement) override
Send a measurement to the target.
void sendMatrix(MatrixSignal::Ptr matrix) override
Send a matrix to the target.
std::vector< SignalGroup > children
Container for children (sub-namespace)
SignalGroup & getSignalsRef()
void sendIndexedValues(IndexedValuesSignal::Ptr indexed_values) override
Send signal containing values indexed by a single integer.
void sendTimeSeries(TimeSeriesSignal::Ptr time_series) override
Send a time series to the target.
std::vector< SignalInterface::Ptr > group_signals
set of signals in the current group
SignalGroup * getGroup(const std::string &full_group_name)
SignalInterface::Ptr getSignal(const std::string &full_signal_name)
SignalGroup _signals
Root element of the signal tree.
virtual ~CommonSignalTarget()
std::string group_name
Identifier for the current group / signal namespace.
void setTopLevelGroupName(const std::string &name)
std::shared_ptr< IndexedValuesSignal > Ptr
void registerTimeSeries(const std::string &, int, bool zero_order_hold=false) override
Register a time series type at current target.
std::shared_ptr< IndexedValuesSetSignal > Ptr
void clear()
Erase stored signals.
void removeSignal(const std::string &name)
const SignalGroup & getSignals() const
Retrieve read-only-access to the underlying signal-tree.
void registerMeasurement(const std::string &, int, const std::vector< std::string > &={}, bool zero_order_hold=false) override
Register a measurement type at current target.
std::shared_ptr< const Measurement > ConstPtr
Tree node containing a group of signals and a set of child tree nodes.
std::shared_ptr< TimeSeriesSignal > Ptr
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:39