From 82c3720ff7124596b2fdd2d214b6b253ebed83f7 Mon Sep 17 00:00:00 2001 From: dufourj Date: Thu, 5 May 2005 18:33:14 +0000 Subject: Implémentation des algos --- 2005/i/robert/src/ai/test_ai.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '2005/i/robert/src/ai/test_ai.cc') 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) -- cgit v1.2.3