43 #ifndef ILQGAMES_COST_QUADRATIC_POLYLINE2_COST_H 44 #define ILQGAMES_COST_QUADRATIC_POLYLINE2_COST_H 46 #include <ilqgames/cost/time_invariant_cost.h> 47 #include <ilqgames/geometry/polyline2.h> 48 #include <ilqgames/utils/types.h> 60 const std::pair<Dimension, Dimension>& position_idxs,
61 const std::string& name =
"")
64 xidx_(position_idxs.first),
65 yidx_(position_idxs.second) {}
68 float Evaluate(
const VectorXf& input)
const;
72 void Quadraticize(
const VectorXf& input, MatrixXf* hess,
73 VectorXf* grad)
const;
80 const Dimension xidx_;
81 const Dimension yidx_;