-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathMPC.h
More file actions
34 lines (26 loc) · 620 Bytes
/
MPC.h
File metadata and controls
34 lines (26 loc) · 620 Bytes
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
#ifndef MPC_H
#define MPC_H
#include <vector>
#include "Eigen-3.3/Eigen/Core"
using namespace std;
class MPC {
public:
// max steering angle
int max_steer;
/**
* Constructor
*/
MPC();
/**
* Destructor
*/
virtual ~MPC();
/**
* Solve the model given an initial state and polynomial coefficients.
* @param state state vector the the vehicle
* @param coeffs coefficients of the reference line
* @return Return the first actuator values, and the predicted state of x,y positions
*/
vector<double> Solve(Eigen::VectorXd state, Eigen::VectorXd coeffs);
};
#endif /* MPC_H */