forked from shubhamgoyal/Motion-Planning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypeAndStruct.h
58 lines (48 loc) · 897 Bytes
/
typeAndStruct.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef STRUCTS
#define STRUCTS
//TYPEDEF
typedef double dd;
//DEFINITION
#define _USE_MATH_DEFINES
#include<cmath>
#define RANDOM_SEED 12345
#define GUI_ENABLED 1
#define SOUND_ENABLED 1
//for car
#define CARLENGTH 3.0
#define CARWIDTH 1.6
#define Y_VISIBLE 100
#define WAIT_TO_HORN 1500
#define HORN_INTERVAL 500
#define HORN_HALT 5000
#define HORN_BUFFER 1.0
#define HORN_ENABLED 1
//for pedestrian
#define PEDESTRIAN_SIZE 5
#define NUMBER_OF_PEDESTRIANS 500
#define USE_ZEBRA_CROSS 1
/* NORMAL CHANCE THAT IS USED:
#define CHANCE_EXIT 0
#define CHANCE_SAME_PAVEMENT 35
#define CHANCE_CROSS 50
#define CHANCE_STOP 15
/**/
#define CHANCE_EXIT 0
#define CHANCE_SAME_PAVEMENT 0
#define CHANCE_CROSS 100
#define CHANCE_STOP 0
//for planner
#define MAX_V 25.0
#define MAX_DECEL 0.7e-1
//STRUCT
struct State {
dd x;
dd y;
dd v;
dd theta;
} ;
struct Control {
dd h1;
dd h2;
} ;
#endif