00001
00007 #ifndef JWALKINLCUDES_H
00008 #define JWALKINLCUDES_H
00009
00010
00011 #include "alxplatform.h"
00012 #include <fstream>
00013 #include <sstream>
00014 #include <albroker.h>
00015 #include <almodule.h>
00016 #include <altools.h>
00017 #include "altypes.h"
00018 #include "alptr.h"
00019 #include "albrokermanager.h"
00020
00021
00022 #include "alproxies.h"
00023
00024
00025 #include <semaphore.h>
00026 #include <pthread.h>
00027 #include <time.h>
00028 #include <math.h>
00029 #include <iostream>
00030 #include <fstream>
00031 #include <sstream>
00032 #include <stdlib.h>
00033 using namespace std;
00034
00035 namespace AL
00036 {
00037 class ALBroker;
00038 }
00039
00040 #define DEBUG_TO_FILE 1 // controls the location of the debug information (a file, or cout)
00041 #if DEBUG_TO_FILE
00042 #define thelog jasonLog
00043 extern std::ofstream thelog;
00044 #else
00045 #define thelog cout
00046 #endif
00047
00048 #define JWALK_REALTIME 1
00049 #define JWALK_REALTIME_PRIORITY 40
00050 #define ALDCM_CYCLETIME 20 // the alDcm cycle time in milliseconds
00051
00052
00053 enum JWalkModeEnum
00054 {
00055 JWALK_TRANSITION,
00056 JWALK_JMODE,
00057 JWALK_GMODE,
00058 JWALK_ALMODE,
00059 JWALK_SMODE,
00060 JWALK_NUM_MODES
00061 };
00062
00063
00064 enum JWalkFunctionIDEnum
00065 {
00066 ID_NUWALKONBEARING,
00067 ID_NUWALKTOPOINT,
00068 ID_NUWALKTOPOINTWITHORIENTATION,
00069 ID_NUWALKTOPOINTWITHMAINTAINORIENTATION,
00070 ID_GFORWARD,
00071 ID_GBACKWARD,
00072 ID_GARC,
00073 ID_GLEFT,
00074 ID_GRIGHT,
00075 ID_GTURNLEFT,
00076 ID_GTURNRIGHT,
00077 ID_ALSTRAIGHT,
00078 ID_ALARC,
00079 ID_ALSIDEWAYS,
00080 ID_ALTURN,
00081 ID_UNDEFINED,
00082 ID_NUM_IDS
00083 };
00084
00085 #endif