44 #ifndef ILQGAMES_COST_WEIGHTED_CONVEX_PROXIMITY_COST_H 45 #define ILQGAMES_COST_WEIGHTED_CONVEX_PROXIMITY_COST_H 47 #include <ilqgames/cost/time_invariant_cost.h> 48 #include <ilqgames/utils/types.h> 57 float weight,
const std::pair<Dimension, Dimension>& position_idxs1,
58 const std::pair<Dimension, Dimension>& position_idxs2, Dimension vidx1,
59 Dimension vidx2,
float threshold,
const std::string& name =
"")
61 threshold_(threshold),
62 threshold_sq_(threshold * threshold),
63 xidx1_(position_idxs1.first),
64 yidx1_(position_idxs1.second),
66 xidx2_(position_idxs2.first),
67 yidx2_(position_idxs2.second),
71 float Evaluate(
const VectorXf& input)
const;
75 void Quadraticize(
const VectorXf& input, MatrixXf* hess,
76 VectorXf* grad)
const;
80 const float threshold_, threshold_sq_;
83 const Dimension xidx1_, yidx1_, vidx1_;
84 const Dimension xidx2_, yidx2_, vidx2_;