39 #include <glog/logging.h>
47 std::vector<std::shared_ptr<DepthSensorInterface>> &depthSensors) {
51 for (
const auto &sInfo : m_sensorsInfo) {
52 switch (sInfo.sensorType) {
53 case SensorType::SENSOR_ADSD3500: {
54 auto sensor = std::make_shared<Adsd3500Sensor>(
55 sInfo.driverPath, sInfo.subDevPath, sInfo.captureDev);
56 depthSensors.emplace_back(sensor);
59 interruptNotifier.enableInterrupts();
76 fid.open(versionsFilePath);
79 std::getline(fid, line);
80 if (!line.compare(0, component.length(), component)) {
81 version = line.substr(component.length());
89 LOG(
ERROR) <<
"Failed to open file" << versionsFilePath;
98 uBootVersion = getVersionOfComponent(
"u-boot");
99 if (uBootVersion.empty()) {
100 LOG(
ERROR) <<
"Could not find version for u-boot";
110 kernelVersion = getVersionOfComponent(
"kernel");
111 if (kernelVersion.empty()) {
112 LOG(
ERROR) <<
"Could not find version for u-boot";
122 sdVersion = getVersionOfComponent(
"sd_img_ver");
123 if (sdVersion.empty()) {
124 LOG(
ERROR) <<
"Could not find version for u-boot";