14 struct SensorListImpl;
18 class StreamProfileList;
22 using FrameCallback = std::function< void( std::shared_ptr< Frame > frame ) >;
26 std::unique_ptr< SensorImpl > impl_;
27 FrameCallback callback_;
30 Sensor( std::unique_ptr< SensorImpl > impl );
163 const std::shared_ptr< StreamProfileList > getStreamProfileList();
171 void start( std::shared_ptr< StreamProfile > streamProfile, FrameCallback callback );
180 std::unique_ptr< SensorListImpl > impl_;
183 SensorList( std::unique_ptr< SensorListImpl > impl );
200 OBSensorType type( uint32_t index );
208 std::shared_ptr< Sensor > getSensor( uint32_t index );
216 std::shared_ptr< Sensor > getSensor( OBSensorType sensorType );
std::function< void(OBDataTranState state, uint8_t percent) > SetDataCallback
设置raw data属性数据时进度回调
OBGlobalUnifiedProperty
描述设备所有的属性的枚举值
std::function< void(OBDataTranState state, OBDataChunk *dataChunk) > GetDataCallback
获取raw data属性数据时数据及进度回调
提供SDK的结构体、枚举常量定义(依赖libobsensor/h/ObTypes.h)