-
Notifications
You must be signed in to change notification settings - Fork 4
/
trajectory_generator.h
63 lines (52 loc) · 1.84 KB
/
trajectory_generator.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
59
60
61
62
63
/*
* trajectory_generator.h
*
* Created on: Sep 14, 2017
* Author: pierluigiferrari
*/
#ifndef TRAJECTORY_GENERATOR_H_
#define TRAJECTORY_GENERATOR_H_
#include <vector>
using namespace std;
class TrajectoryGenerator {
public:
/*
* Default constructor
*/
TrajectoryGenerator();
/*
* Constructor
*/
TrajectoryGenerator(vector<double> map_waypoints_x,
vector<double> map_waypoints_y,
vector<double> map_waypoints_s);
/*
* Destructor
*/
virtual ~TrajectoryGenerator();
/*
*
*/
vector<vector<double>> generate_trajectory(int target_lane,
double target_velocity,
double time_to_reach_tl,
double time_to_reach_tv,
double planning_horizon,
bool full_path,
double car_x,
double car_y,
double car_s,
double car_d,
double car_yaw,
double end_path_v,
vector<double> previous_path_x,
vector<double> previous_path_y,
double end_path_s,
double end_path_d);
private:
// The waypoints that define the map. Necessary to convert between Cartesian and Frenet coordinates.
vector<double> map_waypoints_x_;
vector<double> map_waypoints_y_;
vector<double> map_waypoints_s_;
};
#endif /* TRAJECTORY_GENERATOR_H_ */