Meta class that handles the timing, triggering and processing of sensor measurements. Internally it runs a looping state machine.
More...
#include <MeasurementManager.hpp>
Meta class that handles the timing, triggering and processing of sensor measurements. Internally it runs a looping state machine.
◆ MeasurementManager() [1/2]
Construct the manager from a configured factory. Builds the SensorRing internally.
- Parameters
-
| [in] | params | Manager configuration. |
| [in] | factory | Configured SensorRingFactory (interfaces and expectations already set). |
◆ MeasurementManager() [2/2]
| eduart::sensorring::manager::MeasurementManager::MeasurementManager |
( |
ManagerParams | params, |
|
|
std::unique_ptr< SensorRing > | sensor_ring ) |
Construct the manager from a pre-built SensorRing (expert-user constructor).
- Parameters
-
| [in] | params | Manager configuration. |
| [in] | sensor_ring | Fully configured SensorRing. Ownership is transferred. |
◆ depthSensors()
Return all depth sensors.
- Returns
- Group of depth sensors.
◆ getManagerState()
| ManagerState eduart::sensorring::manager::MeasurementManager::getManagerState |
( |
| ) |
const |
|
noexcept |
Return the current health state of the state machine worker.
- Returns
- Current manager state.
◆ getParams()
| ManagerParams eduart::sensorring::manager::MeasurementManager::getParams |
( |
| ) |
const |
|
noexcept |
Return the parameters used to initialize the manager.
- Returns
- Initial parameter struct.
◆ isMeasuring()
| bool eduart::sensorring::manager::MeasurementManager::isMeasuring |
( |
| ) |
|
|
noexcept |
Report whether the measurement worker thread is running.
- Returns
- true if the measurement thread is running.
◆ lights()
Return all lights.
- Returns
- Group of lights.
◆ measureSome()
| bool eduart::sensorring::manager::MeasurementManager::measureSome |
( |
| ) |
|
|
noexcept |
Run one processing cycle of the state machine worker.
- Returns
- true on success.
◆ startMeasuring()
| bool eduart::sensorring::manager::MeasurementManager::startMeasuring |
( |
| ) |
|
|
noexcept |
Start the state machine worker loop in a dedicated thread.
- Returns
- true on success.
◆ stopMeasuring()
| bool eduart::sensorring::manager::MeasurementManager::stopMeasuring |
( |
| ) |
|
|
noexcept |
Stop the state machine worker loop and join the thread.
- Returns
- true on success.
◆ subscribeToStateChanges()
Subscribe to state changes; callback is invoked when the state changes.
- Parameters
-
- Returns
- RAII Subscription that auto-cancels on destruction.
◆ thermalSensors()
Return all thermal sensors.
- Returns
- Group of thermal sensors.
The documentation for this class was generated from the following file: