Main Page
Modules
Namespaces
Classes
Files
File List
File Members
ORCAStarLib
Src
Const.h
Go to the documentation of this file.
1
6
#ifndef ORCA_CONST_H
7
#define ORCA_CONST_H
8
9
10
#define Velocity Point
11
#define Vector Point
12
13
14
#define CN_EPS 0.00001f
15
#define CN_PI_CONSTANT 3.14159265359
16
#define CN_SQRT_TWO 1.41421356237
17
#define FULL_OUTPUT false
18
19
20
#define CNS_TAG_ROOT "root"
21
22
#define CNS_TAG_AGENTS "agents"
23
#define CNS_TAG_ATTR_NUM "number"
24
#define CNS_TAG_ATTR_TYPE "type"
25
26
#define CNS_TAG_DEF_PARAMS "default_parameters"
27
#define CNS_TAG_ATTR_SIZE "size"
28
#define CNS_TAG_ATTR_MAXSPEED "movespeed"
29
#define CNS_TAG_ATTR_AGENTSMAXNUM "agentsmaxnum"
30
#define CNS_TAG_ATTR_TIMEBOUNDARY "timeboundary"
31
#define CNS_TAG_ATTR_SIGHTRADIUS "sightradius"
32
#define CNS_TAG_ATTR_TIMEBOUNDARYOBST "timeboundaryobst"
33
#define CNS_TAG_ATTR_REPS "reps"
34
#define CNS_TAG_ATTR_PARACTNUM "paractivatingnum"
35
36
#define CNS_TAG_AGENT "agent"
37
#define CNS_TAG_ATTR_ID "id"
38
#define CNS_TAG_ATTR_STX "start.xr"
39
#define CNS_TAG_ATTR_STY "start.yr"
40
#define CNS_TAG_ATTR_GX "goal.xr"
41
#define CNS_TAG_ATTR_GY "goal.yr"
42
43
#define CNS_TAG_ALG "algorithm"
44
#define CNS_TAG_ST "searchtype"
45
#define CNS_TAG_MT "metrictype"
46
#define CNS_TAG_BT "breakingties"
47
#define CNS_TAG_AS "allowsqueeze"
48
#define CNS_TAG_CC "cutcorners"
49
#define CNS_TAG_HW "hweight"
50
#define CNS_TAG_TS "timestep"
51
#define CNS_TAG_DEL "delta"
52
53
#define CNS_TAG_MAP "map"
54
#define CNS_TAG_CELLSIZE "cellsize"
55
#define CNS_TAG_WIDTH "width"
56
#define CNS_TAG_HEIGHT "height"
57
#define CNS_TAG_GRID "grid"
58
#define CNS_TAG_ROW "row"
59
60
#define CNS_TAG_OBSTS "obstacles"
61
#define CNS_TAG_OBST "obstacle"
62
#define CNS_TAG_VERTEX "vertex"
63
#define CNS_TAG_ATTR_X "xr"
64
#define CNS_TAG_ATTR_Y "yr"
65
66
#define CNS_TAG_LOG "log"
67
#define CNS_TAG_SUM "summary"
68
#define CNS_TAG_ATTR_SR "successrate"
69
#define CNS_TAG_ATTR_RUNTIME "runtime"
70
#define CNS_TAG_ATTR_FLOWTIME "flowtime"
71
#define CNS_TAG_ATTR_MAKESPAN "makespan"
72
#define CNS_TAG_ATTR_COL_AGNT "collisions"
73
#define CNS_TAG_ATTR_COL_OBST "collisionsobst"
74
#define CNS_TAG_PATH "path"
75
#define CNS_TAG_ATTR_PATHFOUND "pathfound"
76
#define CNS_TAG_ATTR_STEPS "steps"
77
#define CNS_TAG_STEP "step"
78
79
80
//XML tags' attributes
81
#define CNS_TAG_ATTR_NUMOFSTEPS "numberofsteps"
82
#define CNS_TAG_ATTR_NODESCREATED "nodescreated"
83
#define CNS_TAG_ATTR_LENGTH "length"
84
#define CNS_TAG_ATTR_LENGTH_SCALED "length_scaled"
85
#define CNS_TAG_ATTR_TIME "time"
86
87
88
89
90
91
92
#define CNS_SP_ST_THETA "thetastar"
93
#define CNS_SP_ST_DIR "direct"
94
95
#define CNS_AT_ST_ORCA "orca"
96
97
#define CNS_SP_MT_DIAG "diagonal"
98
#define CNS_SP_MT_MANH "manhattan"
99
#define CNS_SP_MT_EUCL "euclid"
100
#define CNS_SP_MT_CHEB "chebyshev"
101
102
#define CN_SP_MT_DIAG 0
103
#define CN_SP_MT_MANH 1
104
#define CN_SP_MT_EUCL 2
105
#define CN_SP_MT_CHEB 3
106
107
#define CN_SP_ST_THETA 0
108
#define CN_SP_ST_DIR 1
109
110
111
112
113
// Default values
114
#define CN_DEFAULT_SIZE 1
115
#define CN_DEFAULT_MAX_SPEED 1
116
#define CN_DEFAULT_AGENTS_MAX_NUM 10
117
#define CN_DEFAULT_TIME_BOUNDARY 5.4
118
#define CN_DEFAULT_OBS_TIME_BOUNDARY 10
119
#define CN_DEFAULT_RADIUS_OF_SIGHT 10
120
#define CN_DEFAULT_METRIC_TYPE CN_SP_MT_EUCL
121
#define CN_DEFAULT_BREAKINGTIES 0
122
#define CN_DEFAULT_ALLOWSQUEEZE 0
123
#define CN_DEFAULT_CUTCORNERS 0
124
#define CN_DEFAULT_HWEIGHT 1
125
#define CN_DEFAULT_TIME_STEP 0.25
126
#define CN_DEFAULT_DELTA 0.1
127
#define CN_DEFAULT_REPS 0.19
128
129
130
#define CN_DEFAULT_ST CN_SP_ST_THETA
131
#define CNS_DEFAULT_ST CNS_SP_ST_THETA
132
#define CNS_DEFAULT_AGENT_TYPE CNS_AT_ST_ORCA
133
134
135
136
137
138
//Search Parameters
139
#define CN_SP_BT_GMIN 0
140
#define CN_SP_BT_GMAX 1
141
142
//Grid Cell
143
#define CN_GC_NOOBS 0
144
#define CN_GC_OBS 1
145
146
147
148
149
150
#endif //ORCA_CONST_H
ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14