|
@@ -27,11 +27,12 @@ int main(int argc, char * argv[]) {
|
|
|
return EXIT_FAILURE;
|
|
|
}
|
|
|
|
|
|
+ // 初始化测量程序
|
|
|
+ DetectManager::iter()->Init(tof3d_etc.vzense_tof3d_devices());
|
|
|
+
|
|
|
// 通信
|
|
|
- CommunicationManager::iter()->Init(tof3d_etc.communication());
|
|
|
+ CommunicationManager::iter()->Init(tof3d_etc.communication());
|
|
|
|
|
|
- // 初始化测量程序
|
|
|
- DetectManager::iter()->Init();
|
|
|
|
|
|
// 加载看门狗 TODO:添加看门狗,监视线程
|
|
|
LOG(INFO) << "---------- all init complate ----------";
|
|
@@ -42,7 +43,14 @@ int main(int argc, char * argv[]) {
|
|
|
// } else {
|
|
|
// cv::imshow("merge_mat", mat);
|
|
|
// }
|
|
|
- usleep(100 * 1000);
|
|
|
+// usleep(5 * 1000 * 1000);
|
|
|
+// DetectManager::iter()->Stop();
|
|
|
+// DeviceTof3D::iter()->Stop();
|
|
|
+//
|
|
|
+// usleep(5 * 1000 * 1000);
|
|
|
+// DeviceTof3D::iter()->Continue();
|
|
|
+// DetectManager::iter()->Continue();
|
|
|
+ usleep(5 * 1000 * 1000);
|
|
|
}
|
|
|
|
|
|
return EXIT_SUCCESS;
|