47 #ifndef ILQGAMES_CONSTRAINT_PROXIMITY_CONSTRAINT_H 48 #define ILQGAMES_CONSTRAINT_PROXIMITY_CONSTRAINT_H 50 #include <ilqgames/constraint/time_invariant_constraint.h> 51 #include <ilqgames/utils/types.h> 53 #include <glog/logging.h> 63 const std::pair<Dimension, Dimension>& dims2,
64 float threshold,
bool keep_within,
65 const std::string& name =
"")
71 threshold_(threshold),
72 keep_within_(keep_within) {
73 CHECK_GT(threshold_, 0.0);
77 float Evaluate(
const VectorXf& input)
const;
81 void Quadraticize(Time t,
const VectorXf& input, MatrixXf* hess,
82 VectorXf* grad)
const;
86 const Dimension xidx1_;
87 const Dimension yidx1_;
88 const Dimension xidx2_;
89 const Dimension yidx2_;
92 const float threshold_;
95 const bool keep_within_;