00001 #ifndef RIDE_GLOBAL_CONST_HPP
00002 #define RIDE_GLOBAL_CONST_HPP
00003
00004 #include <math.h>
00005 #include <iostream>
00006
00007 namespace jafar {
00008
00009 namespace ride {
00010
00015 class GC
00016 {
00017 public :
00018
00019 static const double DMIN = 40.;
00020
00021 static const double DMAX = 400.;
00022
00023 static const double CORRIDOR = 200.;
00024
00025 static const double GRAV = 9.81;
00026
00027 static const double DLIM = 60.0;
00028
00029 static const int JAM_SECTORS = 4;
00030
00031 static const double JAMSTEP = 10.0;
00032
00033 static const double MAXAPERTURE = 100.*M_PI/180.;
00034
00035 static const double JAMEW_ANTICIP = 300.;
00036
00037 static const int JAMEW_PER_SECTOR = 3;
00038
00039 static const double JAMTF_APERTURE = 3.*M_PI/180.;
00040
00041 static const double D_PROXY = 10.;
00042
00043 static const double D_LOCAL = 6.;
00044
00045 static const double COEF_DMIN_CONFIG = 1.5;
00046
00047 static const double COEF_REPLAN = 1.5;
00048
00049 static const double MULTI_TRAJ_STEP = 8.;
00050
00051 static const bool ENABLE_MULTI_TRAJ_3D = true;
00052
00053 static const int MULTI_TRAJ_MAX_NODE = 10000;
00054
00055 static const int MULTI_TRAJ_MAX_LEVEL = 100;
00056
00057 static const int MULTI_TRAJ_MAX_TIME = 1000;
00058
00059 static const int SMOOTHER_MAX_TIME = 500;
00060
00061 static const int SMOOTHER_MAX_ITERATION = 1000;
00062
00063 static const double SMOOTHER_PRECISION = 0.1;
00064
00065 static const double SMOOTHER_TIME_STEP = 0.1;
00066
00067 static const double SMOOTHER_SPRING_COEF = 1.;
00068
00069 static const double SMOOTHER_DAMP_COEF = 2.;
00070
00071 static const double MULTI_TRAJ_TIME_COST = 2.;
00072
00073 static const double PENALITY_NOT_VALID_ZONE = 10.;
00074
00075 static const double PENALITY_LIMIT_ZONE = 4.;
00076
00077 static const int SLOT_UPDATE_RATE = 0;
00078
00079 static const int PLAN_UPDATE_RATE = 30;
00080
00081 static const int NB_STEP_CLOSE_POINT = 80;
00082
00083 static const int TEST_PER_VOLUME_CLOSE_POINT = 4;
00084
00085 static const int MAX_VALID_CLOSE_POINT = 30;
00086
00087 static const bool OPTIMAL_SLOT_ALLOC = true;
00088
00089 static const bool USE_ESTIMATE_STATE = true;
00090
00091 static const double MAX_TIME_ESTIMATE_STATE = 1.;
00092
00093 static const double SPLIT_ANTICIP = 50.;
00094
00095 static const double COEF_SAT_POTENTIAL = 100.;
00096
00097 static const double COEF_SLOT_POTENTIAL = 0.1;
00098
00099 static const double COEF_VERT_POTENTIAL = 0.3;
00100
00101 static const double COEF_CORRIDOR_POTENTIAL = 60.;
00102
00103 static const double COEF_UAV_POTENTIAL = 50.;
00104
00105 static const double COEF_THREAT_POTENTIAL = 30.;
00106
00107 static const double COEF_PROTEC_POTENTIAL = 6.;
00108
00109 static const double D_FORCE_MIN = 0.1;
00110
00111 };
00112
00113 }
00114
00115 }
00116
00117 #endif
00118