Commit 8b624591 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

update to changes in hpp-core

parent cab76127
...@@ -124,7 +124,7 @@ namespace hpp { ...@@ -124,7 +124,7 @@ namespace hpp {
{ {
if (!model.active) return; if (!model.active) return;
if (model.optional) { if (model.optional) {
proj->add (eq, core::segments_t(0), 1); proj->add (eq, 1);
proj->lastIsOptional (true); proj->lastIsOptional (true);
} else { } else {
proj->add (eq); proj->add (eq);
......
...@@ -103,7 +103,7 @@ void constraints_check (LineSearchFactory factory) ...@@ -103,7 +103,7 @@ void constraints_check (LineSearchFactory factory)
ConfigProjectorPtr_t proj = ConfigProjector::create (hrp2, "projector", 1e-4, 20); ConfigProjectorPtr_t proj = ConfigProjector::create (hrp2, "projector", 1e-4, 20);
for (std::size_t i = 0; i < ncs.size (); ++i) { for (std::size_t i = 0; i < ncs.size (); ++i) {
proj->add (ncs[i], hpp::core::segments_t (0), 0); proj->add (ncs[i], 0);
} }
ConfigurationShooterPtr_t shooter = ConfigurationShooterPtr_t shooter =
Uniform::create (hrp2); Uniform::create (hrp2);
...@@ -137,7 +137,7 @@ void constraints_check (LineSearchFactory factory) ...@@ -137,7 +137,7 @@ void constraints_check (LineSearchFactory factory)
ConfigProjectorPtr_t projOpt = HPP_STATIC_PTR_CAST (ConfigProjector, ConfigProjectorPtr_t projOpt = HPP_STATIC_PTR_CAST (ConfigProjector,
proj->copy ()); proj->copy ());
projOpt->add (cc, hpp::core::segments_t (0), 1); projOpt->add (cc, 1);
projOpt->lastIsOptional (true); projOpt->lastIsOptional (true);
success = 0; success = 0;
......
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