|
|
| SensorList (std::unique_ptr< SensorListImpl > impl) |
| |
| uint32_t | count () |
| | 获取Sensor数量 更多...
|
| |
| OBSensorType | type (uint32_t index) |
| | 获取指定Sensor的类型 更多...
|
| |
| std::shared_ptr< Sensor > | getSensor (uint32_t index) |
| | 通过索引号获取Sensor 更多...
|
| |
| std::shared_ptr< Sensor > | getSensor (OBSensorType sensorType) |
| | 通过Sensor类型获取Sensor 更多...
|
| |
| uint32_t ob::SensorList::count |
( |
| ) |
|
获取Sensor数量
- 返回
- uint32_t 返回Sensor的数量
| std::shared_ptr< Sensor > ob::SensorList::getSensor |
( |
uint32_t |
index | ) |
|
通过索引号获取Sensor
- 参数
-
| index | 要创建设备的索,范围 [0, count-1],如果index超出范围将抛异常 |
- 返回
- std::shared_ptr<Sensor> 返回Sensor对象
| std::shared_ptr< Sensor > ob::SensorList::getSensor |
( |
OBSensorType |
sensorType | ) |
|
通过Sensor类型获取Sensor
- 参数
-
- 返回
- std::shared_ptr<Sensor> 返回Sensor对象,如果指定类型Sensor不存在,将返回空
| OBSensorType ob::SensorList::type |
( |
uint32_t |
index | ) |
|
获取指定Sensor的类型
- 参数
-
- 返回
- OBSensorType 返回Sensor类型
该类的文档由以下文件生成:
- /root/libobsensor/include/libobsensor/hpp/Sensor.hpp