Class MPCOptimizer
Defined in File MPCOptimizer.hpp
Class Documentation
A MPC Optimizer class.
Public Functions
Destructor.
Kinematic model for a particle used by optmizer to stimate final position.
- Parameters:
x – Eigen::Vector3d Initial position for robot (x,y,z)
q – Eigen::Vector3d Initial angel for robot (roll, pitch , yaw)
v – double lineal velocity
w – double angular velocity
dt – double differential time used for integration
- Returns:
Eigen::Vector3d Final state for robot (x,y,yaw)
Wrap for real cost function.
- Parameters:
u – std::vector<double> Velocity vector to be optimized
grad – std::vector<double> gradient values for optimizer. It is NOT used for this implementation.
data – MPCParameter pointer with parameters used by optimizer
- Returns:
double cost value used by nlOpt in internal callback
Public Static Functions
Real cost function with static propierties.
- Parameters:
u – std::vector<double> Velocity vector to be optimized
grad – std::vector<double> gradient values for optimizer. It is NOT used for this implementation.
data – MPCParameter pointer with parameters used by optimizer
- Returns:
double cost value used by nlOpt in internal callback