43 #ifndef ILQGAMES_COST_CURVATURE_COST_H 44 #define ILQGAMES_COST_CURVATURE_COST_H 46 #include <ilqgames/cost/time_invariant_cost.h> 47 #include <ilqgames/utils/types.h> 55 CurvatureCost(
float weight, Dimension omega_idx, Dimension v_idx,
56 const std::string& name =
"")
60 float Evaluate(
const VectorXf& input)
const;
64 void Quadraticize(
const VectorXf& input, MatrixXf* hess,
65 VectorXf* grad)
const;
69 float Curvature(
const VectorXf& input)
const {
70 return input(omega_idx_) / input(v_idx_);