projects
/
201903hackathon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
experiment with reverse
[201903hackathon.git]
/
cpp
/
openCVnaiveObstacleAvoidance
/
openCVnaiveObstacleAvoidance.cpp
diff --git
a/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp
b/cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp
index
9758346
..
c8b60a3
100644
(file)
--- a/
cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp
+++ b/
cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance.cpp
@@
-58,9
+58,10
@@
class MyListener : public IDepthDataListener
const string bobbycar_forward = "f";
const string bobbycar_left = "l";
const string bobbycar_right = "r";
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;
uint8_t bobbycar_reversing = 254;
- royale::Vector<royale::String> boobycar_reversing_script ={"s","b","b","b","b","r","b","r","b","r","b"};
+ royale::Vector<royale::String> boobycar_reversing_script ={"s","b","b","b","r","r","r","r","r","r","b","b"};
public :
public :
@@
-269,7
+270,8
@@
private:
void naiveObstacleAvoidanceDemo()
{
if (bobbycar_reversing<boobycar_reversing_script.size()) {
void naiveObstacleAvoidanceDemo()
{
if (bobbycar_reversing<boobycar_reversing_script.size()) {
- std::cout << boobycar_reversing_script.at(bobbycar_reversing++);
+ std::cout << boobycar_reversing_script.at(bobbycar_reversing++) << std::endl;
+ return;
}
}