Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
globalConst.hpp
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                 // min distance between A/C
00019                 static const double DMIN = 40.;
00020                 // max distance between A/C
00021                 static const double DMAX = 400.;
00022                 // default corridor size
00023                 static const double CORRIDOR = 200.;
00024                 // acceleration of gravity
00025                 static const double GRAV = 9.81;
00026                 // max distance to switch from FLYBY to FLYOVER
00027                 static const double DLIM = 60.0;
00028                 // number of sector
00029                 static const int JAM_SECTORS = 4;
00030                 // step for allocations
00031                 static const double JAMSTEP = 10.0;
00032                 // max aperture for allocation
00033                 static const double MAXAPERTURE = 100.*M_PI/180.;
00034                 // distance for jamming anticipation
00035                 static const double JAMEW_ANTICIP = 300.;
00036                 // maximum number of EW that can be jammed in each sector
00037                 static const int JAMEW_PER_SECTOR = 3;
00038                 // aperture of defensive jammer
00039                 static const double JAMTF_APERTURE = 3.*M_PI/180.;
00040                 // distance that consider uav on slot
00041                 static const double D_PROXY = 10.;
00042                 // distance of a local move
00043                 static const double D_LOCAL = 6.;
00044                 // magnify dmin in config planification
00045                 static const double COEF_DMIN_CONFIG = 1.5;
00046                 // coef for replan (coef*D_LOCAL)
00047                 static const double COEF_REPLAN = 1.5;
00048                 // move step for multi traj planning
00049                 static const double MULTI_TRAJ_STEP = 8.;
00050                 // enable 3D move in multi traj planning
00051                 static const bool ENABLE_MULTI_TRAJ_3D = true;
00052                 // maximum number of nodes before failing A*
00053                 static const int MULTI_TRAJ_MAX_NODE = 10000;
00054                 // maximum number of reconfiguration step in A*
00055                 static const int MULTI_TRAJ_MAX_LEVEL = 100;
00056                 // maximum time for A* in ms
00057                 static const int MULTI_TRAJ_MAX_TIME = 1000;
00058                 // maximum time for smoother in ms
00059                 static const int SMOOTHER_MAX_TIME = 500;
00060                 // maximum number of iteration in smoother loop
00061                 static const int SMOOTHER_MAX_ITERATION = 1000;
00062                 // precision of the smoother to exist loop
00063                 static const double SMOOTHER_PRECISION = 0.1;
00064                 // smoother time step for simulation of dynamics
00065                 static const double SMOOTHER_TIME_STEP = 0.1;
00066                 // spring force coef in smoother
00067                 static const double SMOOTHER_SPRING_COEF = 1.;
00068                 // damp force coef in smoother
00069                 static const double SMOOTHER_DAMP_COEF = 2.;
00070                 // penality cost on time step
00071                 static const double MULTI_TRAJ_TIME_COST = 2.;
00072                 // penality cost for moving in not valid zone (multi traj)
00073                 static const double PENALITY_NOT_VALID_ZONE = 10.;
00074                 // penality cost for moving in limit zone (multi traj)
00075                 static const double PENALITY_LIMIT_ZONE = 4.;
00076                 // number of step between two slot updates
00077                 static const int SLOT_UPDATE_RATE = 0;
00078                 // number of step between two plan updates
00079                 static const int PLAN_UPDATE_RATE = 30;
00080                 // number of step in the get close point algo (Area)
00081                 static const int NB_STEP_CLOSE_POINT = 80;
00082                 // number of random tests per volume unit in close point algo
00083                 static const int TEST_PER_VOLUME_CLOSE_POINT = 4;
00084                 // number of valid points to find before stopping close point algo
00085                 static const int MAX_VALID_CLOSE_POINT = 30;
00086                 // optimal or best first method for slot allocation
00087                 static const bool OPTIMAL_SLOT_ALLOC = true;
00088                 // use estimated positions of the UAVs in the formation
00089                 static const bool USE_ESTIMATE_STATE = true;
00090                 // max delta time for estimated positions (in second)
00091                 static const double MAX_TIME_ESTIMATE_STATE = 1.;
00092                 // distance for split anticipation
00093                 static const double SPLIT_ANTICIP = 50.;
00094                 // staturation value for potentials
00095                 static const double COEF_SAT_POTENTIAL = 100.;
00096                 // coef on center attraction force
00097                 static const double COEF_SLOT_POTENTIAL = 0.1;
00098                 // coef on plan z=0 attraction force
00099                 static const double COEF_VERT_POTENTIAL = 0.3;
00100                 // coef on corridor force
00101                 static const double COEF_CORRIDOR_POTENTIAL = 60.;
00102                 // coef on uav force
00103                 static const double COEF_UAV_POTENTIAL = 50.;
00104                 // coef on EW threat force
00105                 static const double COEF_THREAT_POTENTIAL = 30.;
00106                 // coef on TF threat force
00107                 static const double COEF_PROTEC_POTENTIAL = 6.;
00108                 // minimum force value
00109                 static const double D_FORCE_MIN = 0.1;
00110 
00111         };
00112 
00113     }
00114 
00115 }
00116 
00117 #endif
00118 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:26 for Jafar by doxygen 1.7.6.1
LAAS-CNRS