EduArt Sensor Ring Library 3.0.0
Loading...
Searching...
No Matches
SensorRingFactory.hpp File Reference

Factory for creating sensor rings via auto-discovery, configured expectations, or a mix of both. More...

#include <string>
#include <unordered_map>
#include <variant>
#include <vector>
#include "sensorring/SensorBoardParams.hpp"
#include "sensorring/SensorRing.hpp"
#include "sensorring/device/DeviceType.hpp"
#include "sensorring/device/EnumerationInformation.hpp"
#include "sensorring/device/hardware/htpa32/HTPA32_Params.hpp"
#include "sensorring/device/hardware/vl53l8cx/VL53L8CX_Params.hpp"
#include "sensorring/device/hardware/ws2812b/WS2812b_Params.hpp"
#include "sensorring/interface/ComInterfaceID.hpp"
#include "sensorring/platform/SensorringExport.hpp"
Include dependency graph for SensorRingFactory.hpp:

Go to the source code of this file.

Classes

class  eduart::ring::SensorRingFactory
 Factory for creating a SensorRing. More...

Enumerations

enum class  eduart::ring::ValidationMode { Strict , Relaxed }
 Controls how build() handles mismatches between expectations and discovered hardware. More...

Detailed Description

Factory for creating sensor rings via auto-discovery, configured expectations, or a mix of both.

Author
EduArt Robotik GmbH
Date
2026-02-19

Enumeration Type Documentation

◆ ValidationMode

enum class eduart::ring::ValidationMode
strong

Controls how build() handles mismatches between expectations and discovered hardware.

Enumerator
Strict 

All expectations must match exactly by index; build() returns nullptr on any mismatch.

Relaxed 

Expectations are matched by searching for compatible boards (board type and required devices) rather than by index. Unmatched expectations are logged as warnings; build() succeeds with whatever subset could be reconciled.