44 #ifndef ILQGAMES_COST_ROUTE_PROGRESS_COST_H 45 #define ILQGAMES_COST_ROUTE_PROGRESS_COST_H 47 #include <ilqgames/cost/cost.h> 48 #include <ilqgames/geometry/polyline2.h> 49 #include <ilqgames/utils/types.h> 62 const std::pair<Dimension, Dimension>& position_idxs,
63 const std::string& name =
"",
float initial_route_pos = 0.0)
65 nominal_speed_(nominal_speed),
67 xidx_(position_idxs.first),
68 yidx_(position_idxs.second),
69 initial_route_pos_(initial_route_pos) {}
72 float Evaluate(Time t,
const VectorXf& input)
const;
76 void Quadraticize(Time t,
const VectorXf& input, MatrixXf* hess,
77 VectorXf* grad)
const;
81 const float nominal_speed_;
87 const Dimension xidx_;
88 const Dimension yidx_;
91 const float initial_route_pos_;