summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ai/test_ai.cc
diff options
context:
space:
mode:
authordufourj2005-05-05 18:33:14 +0000
committerdufourj2005-05-05 18:33:14 +0000
commit82c3720ff7124596b2fdd2d214b6b253ebed83f7 (patch)
tree3be71836cbf823d27b0b864f747924c489bcddb8 /2005/i/robert/src/ai/test_ai.cc
parent2ddd21b024ff07b71012f5643a692add13f35024 (diff)
Implémentation des algos
Diffstat (limited to '2005/i/robert/src/ai/test_ai.cc')
-rw-r--r--2005/i/robert/src/ai/test_ai.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/2005/i/robert/src/ai/test_ai.cc b/2005/i/robert/src/ai/test_ai.cc
index 0d0aae8..835ee8d 100644
--- a/2005/i/robert/src/ai/test_ai.cc
+++ b/2005/i/robert/src/ai/test_ai.cc
@@ -71,7 +71,20 @@ main (int argc, char **argv)
ai_.stop();
break;
case 'r':
- ai_.run();
+ // Gestion des différents cas/types de robot
+ if (++i > argc)
+ throw std::runtime_error ("syntax error");
+ if (argv[i][0] == '0')
+ {
+ // Pour un robot qui n'est pas fiable en
+ // asservissement
+ ai_.initBalNonFiable();
+ // XXX Différents types d'ai
+ }
+ if (argv[i][0] == '1')
+ {
+ ai_.initBalFiable ();
+ }
break;
case 'j':
if(++i > argc)