Apollo 10.0
自动驾驶开放平台
|
#include <mpc_osqp.h>
Public 成员函数 | |
MpcOsqp (const Eigen::MatrixXd &matrix_a, const Eigen::MatrixXd &matrix_b, const Eigen::MatrixXd &matrix_q, const Eigen::MatrixXd &matrix_r, const Eigen::MatrixXd &matrix_initial_x, const Eigen::MatrixXd &matrix_u_lower, const Eigen::MatrixXd &matrix_u_upper, const Eigen::MatrixXd &matrix_x_lower, const Eigen::MatrixXd &matrix_x_upper, const Eigen::MatrixXd &matrix_x_ref, const int max_iter, const int horizon, const double eps_abs) | |
Solver for discrete-time model predictive control problem. | |
bool | Solve (std::vector< double > *control_cmd) |
在文件 mpc_osqp.h 第 33 行定义.
apollo::common::math::MpcOsqp::MpcOsqp | ( | const Eigen::MatrixXd & | matrix_a, |
const Eigen::MatrixXd & | matrix_b, | ||
const Eigen::MatrixXd & | matrix_q, | ||
const Eigen::MatrixXd & | matrix_r, | ||
const Eigen::MatrixXd & | matrix_initial_x, | ||
const Eigen::MatrixXd & | matrix_u_lower, | ||
const Eigen::MatrixXd & | matrix_u_upper, | ||
const Eigen::MatrixXd & | matrix_x_lower, | ||
const Eigen::MatrixXd & | matrix_x_upper, | ||
const Eigen::MatrixXd & | matrix_x_ref, | ||
const int | max_iter, | ||
const int | horizon, | ||
const double | eps_abs | ||
) |
Solver for discrete-time model predictive control problem.
matrix_a | The system dynamic matrix |
matrix_b | The control matrix |
matrix_q | The cost matrix for control state |
matrix_lower | The lower bound control constrain matrix |
matrix_upper | The upper bound control constrain matrix |
matrix_initial_state | The initial state matrix |
max_iter | The maximum iterations |
在文件 mpc_osqp.cc 第 22 行定义.
bool apollo::common::math::MpcOsqp::Solve | ( | std::vector< double > * | control_cmd | ) |
在文件 mpc_osqp.cc 第 281 行定义.