upkie 6.1.0
Open-source wheeled biped robots
|
Base class for observers. More...
#include <Observer.h>
Public Member Functions | |
virtual | ~Observer () |
Destructor is virtual to deallocate lists of observers properly. | |
virtual std::string | prefix () const noexcept |
Prefix of outputs in the observation dictionary. More... | |
virtual void | reset (const Dictionary &config) |
Reset observer. More... | |
virtual void | read (const Dictionary &observation) |
Read inputs from other observations. More... | |
virtual void | write (Dictionary &observation) |
Write outputs, called if reading was successful. More... | |
Base class for observers.
|
inlinevirtualnoexcept |
Prefix of outputs in the observation dictionary.
Reimplemented in upkie::cpp::observers::BaseOrientation, upkie::cpp::observers::FloorContact, upkie::cpp::observers::HistoryObserver< T >, and upkie::cpp::observers::WheelOdometry.
|
inlinevirtual |
Read inputs from other observations.
[in] | observation | Dictionary to read other observations from. |
Reimplemented in upkie::cpp::observers::BaseOrientation, upkie::cpp::observers::FloorContact, upkie::cpp::observers::HistoryObserver< T >, and upkie::cpp::observers::WheelOdometry.
|
inlinevirtual |
Reset observer.
[in] | config | Configuration dictionary. |
Reimplemented in upkie::cpp::observers::HistoryObserver< T >, upkie::cpp::observers::BaseOrientation, upkie::cpp::observers::FloorContact, and upkie::cpp::observers::WheelOdometry.
|
inlinevirtual |
Write outputs, called if reading was successful.
[out] | observation | Dictionary to write observations to. |
Reimplemented in upkie::cpp::observers::BaseOrientation, upkie::cpp::observers::FloorContact, upkie::cpp::observers::HistoryObserver< T >, and upkie::cpp::observers::WheelOdometry.