-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcar.h
41 lines (31 loc) · 769 Bytes
/
car.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
//
// Created by Ken Power on 18/07/2021.
//
#ifndef PATH_PLANNING_CAR_H
#define PATH_PLANNING_CAR_H
#include <vector>
using std::vector;
struct CarData
{
struct Localization
{
double x = 0.0;
double y = 0.0;
double s = 0.0;
double d = 0.0;
double yaw = 0.0;
double speed = 0.0;
} localization;
struct PreviousPath
{
// Previous path data given to the Planner
vector<double> x;
vector<double> y;
// Previous path's end s and d values
double s = 0.0;
double d = 0.0;
} previous_path;
// Sensor Fusion Data, a list of all other cars on the same side of the road.
vector<vector<double>> sensor_fusion;
};
#endif //PATH_PLANNING_CAR_H