map_definitions.h

00001 
00009 #define MAP_WIDTH       30      
00010 #define MAP_HEIGHT      21      
00012 #define WALL_COST       1000    
00014 #define MAP_WALL                0xFF    
00015 #define MAP_PATH                0xFE    
00016 #define MAP_START               0xFD    
00017 #define MAP_GOAL                0xFC    
00018 #define MAP_NEW_OBSTACLE        0xFB    
00019 #define MAP_FREE                0x00    
00021 #define SHM_MAP_KEY     555             
00023 // some macros to acces to map
00024 #define GETMAPPOS(i,j)          (*(map+i+j*MAP_WIDTH))
00025 
00026 // Some macros useful to convert from Graph coordonates to robot field
00027 #define GRAPHX2FIELD(x)         ((x+0.5)/10.0)  
00028 #define GRAPHY2FIELD(y)         ((abs(y-MAP_HEIGHT)-0.5)/10.0) 
00030 typedef unsigned char map_t;
00031 

Generated on Thu Sep 13 11:28:28 2007 for DCE-Eurobot by  doxygen 1.5.3