upkie 7.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches
upkie::cpp::observers::ObserverPipeline Class Reference

Observer pipeline. More...

#include <ObserverPipeline.h>

Public Member Functions

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...
 

Detailed Description

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.

Member Function Documentation

◆ 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
observerObserver to append.

◆ reset()

void upkie::cpp::observers::ObserverPipeline::reset ( const Dictionary &  config)

Reset observers.

Parameters
[in]configOverall configuration dictionary.

◆ run()

void upkie::cpp::observers::ObserverPipeline::run ( Dictionary &  observation)

Run observer pipeline on an observation dictionary.

Parameters
[in,out]observationObservation dictionary.

The documentation for this class was generated from the following files: