18 struct SensorListImpl;
22 class StreamProfileList;
38 using FrameCallback = std::function<void(std::shared_ptr<Frame> frame)>;
42 std::unique_ptr<SensorImpl>
impl_;
45 Sensor(std::unique_ptr<SensorImpl> impl);
46 virtual ~
Sensor() noexcept;
108 void switchProfile(std::shared_ptr<
StreamProfile> streamProfile);
113 std::unique_ptr<SensorListImpl> impl_;
116 SensorList(std::unique_ptr<SensorListImpl> impl);
118 virtual ~SensorList() noexcept;
162 std::shared_ptr<Sensor> getSensor(uint32_t index);
177 std::shared_ptr<Sensor> getSensor(
OBSensorType sensorType);
OBSensorType
Enumeration value describing the sensor type.
Provide SDK structure and enumeration constant definition (depending on libobsensor/h/ObTypes.h)
std::unique_ptr< SensorImpl > impl_
std::function< void(std::shared_ptr< Frame > frame)> FrameCallback
frame data callback