X-Git-Url: https://git.realraum.at/?p=201903hackathon.git;a=blobdiff_plain;f=cpp%2FopenCVnaiveObstacleAvoidance%2FopenCVnaiveObstacleAvoidance.cpp;h=c8b60a370ded0a801643a7eb03b66d52223a05e0;hp=f8ccfebc6b7905e3d96689c09ddaa8519d7457e3;hb=HEAD;hpb=bb6785d468ffb1de2cbf6d269780994b93ce82a1 diff --git a/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp b/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp index f8ccfeb..c8b60a3 100644 --- a/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp +++ b/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp @@ -58,6 +58,10 @@ class MyListener : public IDepthDataListener const string bobbycar_forward = "f"; const string bobbycar_left = "l"; const string bobbycar_right = "r"; + const string bobbycar_backward = "b"; + + uint8_t bobbycar_reversing = 254; + royale::Vector boobycar_reversing_script ={"s","b","b","b","r","r","r","r","r","r","b","b"}; public : @@ -265,6 +269,12 @@ private: void naiveObstacleAvoidanceDemo() { + if (bobbycar_reversingsetUseCase ("MODE_5_45FPS_500") != royale::CameraStatus::SUCCESS) - if (cameraDevice->setUseCase ("MODE_9_10FPS_1000") != royale::CameraStatus::SUCCESS) + // if (cameraDevice->setUseCase ("MODE_9_10FPS_1000") != royale::CameraStatus::SUCCESS) + if (cameraDevice->setUseCase ("MODE_9_5FPS_2000") != royale::CameraStatus::SUCCESS) { cerr << "Error setting use case" << endl; return 1;