summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ai/test_ai.cc
diff options
context:
space:
mode:
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)