offline_sensor_enumerator.cpp
Go to the documentation of this file.
2 #include "offline_depth_sensor.h"
3 
5 #if TARGET
6  std::string pathToFrames =
7  std::string(RESOURCES) + std::string("/offline/adsd3500_raw");
8 #else
9  std::string pathToFrames = std::string(RESOURCES) + std::string("/offline");
10 #endif
11  m_sensorsInfo.emplace_back(pathToFrames);
12 }
13 
15  std::vector<std::shared_ptr<aditof::DepthSensorInterface>> &depthSensors) {
16  depthSensors.clear();
17 
18  depthSensors.emplace_back(
19  std::make_shared<OfflineDepthSensor>(m_sensorsInfo.front()));
20  return aditof::Status::OK;
21 }
22 
24  return aditof::Status::OK;
25 }
26 
30 }
31 
35 }
36 
40 }
offline_depth_sensor.h
OfflineSensorEnumerator::getSdVersion
virtual aditof::Status getSdVersion(std::string &sdVersion) const override
Get the SD card image version on the embedded system that the camera is attached to.
Definition: offline_sensor_enumerator.cpp:38
OfflineSensorEnumerator::getUbootVersion
virtual aditof::Status getUbootVersion(std::string &uBootVersion) const override
Get the U-Boot version that is installed on the embedded system that the camera is attached to.
Definition: offline_sensor_enumerator.cpp:28
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
OfflineSensorEnumerator::getDepthSensors
virtual aditof::Status getDepthSensors(std::vector< std::shared_ptr< aditof::DepthSensorInterface >> &depthSensors) override
Definition: offline_sensor_enumerator.cpp:14
OfflineSensorEnumerator::searchSensors
virtual aditof::Status searchSensors() override
Do a search for the available sensors.
Definition: offline_sensor_enumerator.cpp:23
aditof::Status::UNAVAILABLE
@ UNAVAILABLE
The requested action or resource is unavailable.
OfflineSensorEnumerator::m_sensorsInfo
std::vector< std::string > m_sensorsInfo
Definition: offline_sensor_enumerator.h:23
OfflineSensorEnumerator::OfflineSensorEnumerator
OfflineSensorEnumerator()
Definition: offline_sensor_enumerator.cpp:4
aditof::Status
Status
Status of any operation that the TOF sdk performs.
Definition: status_definitions.h:48
OfflineSensorEnumerator::getKernelVersion
virtual aditof::Status getKernelVersion(std::string &kernelVersion) const override
Get the kernel version that is installed on the embedded system that the camera is attached to.
Definition: offline_sensor_enumerator.cpp:33
aditof::Status::OK
@ OK
Success.
offline_sensor_enumerator.h


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:57