Commit fee326ce authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

ConfigProjector should not have a threshold of 0.

* Because when there are not constraints, it returns 0 < threshold
* which is false if threshold is 0
parent 9fbc26d3
......@@ -41,7 +41,7 @@ namespace hpp {
const std::string& name) :
Constraint (name), constraints_ ()
{
constraints_.push_back (ConfigProjector::create (robot, "Trivial", 0, 0));
constraints_.push_back (ConfigProjector::create (robot, "Trivial", 1e-12, 0));
trivialOrNotConfigProjectorIt_ = constraints_.begin ();
configProjectorIt_ = constraints_.end ();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment