X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=cpp%2FopenCVnaiveObstacleAvoidance%2FopenCVnaiveObstacleAvoidance.cpp;h=cb97e7b0fc51c13384cf0df2c4865c5ad6af0483;hb=0e07bf0e102380c7ba033175b97ffbe1b020d28b;hp=5849e230eed226f0fd7943c2aee151569e7005be;hpb=2797a0bcf45a0f16d07877723f4f60d76d7ed6e6;p=201903hackathon.git diff --git a/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp b/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp index 5849e23..cb97e7b 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","b","r","b","r","b","r","b"}; public : @@ -265,6 +269,12 @@ private: void naiveObstacleAvoidanceDemo() { + if (bobbycar_reversing