-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrajectory.h
50 lines (40 loc) · 1.54 KB
/
trajectory.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
//
// Created by Ken Power on 17/07/2021.
//
#ifndef PATH_PLANNING_TRAJECTORY_H
#define PATH_PLANNING_TRAJECTORY_H
#include "path_planner.h"
#include "waypoints.h"
#include "car.h"
class Trajectory
{
public:
Trajectory(PathPlanner *path_planner);
void DetermineStartingReference(CarData & car,
int previous_path_size,
vector<double> & ptsx,
vector<double> & ptsy,
double & ref_x,
double & ref_y,
double & ref_yaw,
double & reference_velocity);
void SetWaypoints(const MapWaypoints & map_waypoints,
double car_s,
double next_d,
vector<double> & wp1,
vector<double> & wp2,
vector<double> & wp3);
double CalculateTrajectory(vector<double> & next_x_vals,
vector<double> & next_y_vals,
int previous_path_size,
vector<double> & ptsx,
vector<double> & ptsy,
double ref_x,
double ref_y,
double ref_yaw,
double reference_velocity);
PathPlanner *GetPathPlanner();
private:
PathPlanner * path_planner;
};
#endif //PATH_PLANNING_TRAJECTORY_H