[Botix-devel] robot_default_configuration
Status: Beta
Brought to you by:
vorik2005
|
From: Ger A. <in...@ge...> - 2005-11-23 19:45:22
|
Hi Richard, I've looked at the robot_default_configuration file you've submitted. To be honest, I don't like it very much. Perhaps the big advantage of this approach is the minimal memory usage but at a high price... I like the similar registration of AFSMs and behaviours though... Cons 1) A specific sensor cannot be searched by name anymore. 2) This approach requires lots of code to process all the defines when you try to actually make use of them in the code. 3) I think it is not an option to register sensors this way, because you cannot loop through all sensors/devices easily. 4) You cannot debug easily Wouter is working on an excellent way to register all devices in a really flexible way and what I've seen it do makes me think this is the way to go. He'll try to deliver something workable soon. This will not be a memory hogging thing like i've produced, it will not waste memory space. (remember u08 wouter!) For an idea, you can look at the Hardware/HAL directory. There are several major improvements to that in the pipeline. We need to come up with a similar registration of behaviours and afsms. Untill then, I'll use the 'old' fake structures that checks for a level0 event, then level1 etc.... If you still want to pursue this approach, I could make a fork in CVS or you could develop it further locally... Please let me know what you want to do.. Greetings, Ger. |