Observer pipeline.
More...
#include <ObserverPipeline.h>
|
void | reset (const Dictionary &config) |
| Reset observers. More...
|
|
void | append_observer (std::shared_ptr< Observer > observer) |
| Append an observer at the end of the pipeline. More...
|
|
std::vector< std::shared_ptr< Observer > > & | observers () |
| Observers of the pipeline. Order matters.
|
|
void | run (Dictionary &observation) |
| Run observer pipeline on an observation dictionary. More...
|
|
Observer pipeline.
An observer pipeline is a list of observers, to be executed in that order. Observers further down the pipeline may depend on the results of those that precede them, which are written to the observation dictionary. The pipeline is thus assumed to be topologically sorted.
◆ append_observer()
void upkie::cpp::observers::ObserverPipeline::append_observer |
( |
std::shared_ptr< Observer > |
observer | ) |
|
|
inline |
Append an observer at the end of the pipeline.
- Parameters
-
◆ reset()
void upkie::cpp::observers::ObserverPipeline::reset |
( |
const Dictionary & |
config | ) |
|
Reset observers.
- Parameters
-
[in] | config | Overall configuration dictionary. |
◆ run()
void upkie::cpp::observers::ObserverPipeline::run |
( |
Dictionary & |
observation | ) |
|
Run observer pipeline on an observation dictionary.
- Parameters
-
[in,out] | observation | Observation dictionary. |
The documentation for this class was generated from the following files:
- upkie/cpp/observers/ObserverPipeline.h
- upkie/cpp/observers/ObserverPipeline.cpp