43 #ifndef ILQGAMES_COST_POLYLINE2_SIGNED_DISTANCE_COST_H 44 #define ILQGAMES_COST_POLYLINE2_SIGNED_DISTANCE_COST_H 46 #include <ilqgames/cost/time_invariant_cost.h> 47 #include <ilqgames/geometry/polyline2.h> 48 #include <ilqgames/utils/types.h> 61 const std::pair<Dimension, Dimension>& position_idxs,
62 const float nominal = 0.0,
bool oriented_same_as_polyline =
true,
63 const std::string& name =
"")
66 xidx_(position_idxs.first),
67 yidx_(position_idxs.second),
69 oriented_same_as_polyline_(oriented_same_as_polyline) {}
72 float Evaluate(
const VectorXf& input)
const;
76 void Quadraticize(
const VectorXf& input, MatrixXf* hess,
77 VectorXf* grad)
const;
84 const Dimension xidx_;
85 const Dimension yidx_;
91 const bool oriented_same_as_polyline_;