Skip to content
Snippets Groups Projects
Commit 3a6a3b3d authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

[ProblemSolver] Register contact constaints and complement in constraint graph.

parent 4474b377
No related branches found
No related tags found
No related merge requests found
......@@ -282,6 +282,21 @@ namespace hpp {
std::get<1>(constraints));
addNumericalConstraint(std::get<2>(constraints)->function().name(),
std::get<2>(constraints));
// Set security margin to contact constraint
assert(HPP_DYNAMIC_PTR_CAST(constraints::ConvexShapeContact,
std::get<0>(constraints)->functionPtr()));
constraints::ConvexShapeContactPtr_t contactFunction
(HPP_STATIC_PTR_CAST(constraints::ConvexShapeContact,
std::get<0>(constraints)->functionPtr()));
contactFunction->setNormalMargin(margin);
constraintsAndComplements.push_back (
ConstraintAndComplement_t (std::get<0>(constraints),
std::get<1>(constraints),
std::get<2>(constraints)));
if (constraintGraph ())
constraintGraph ()->registerConstraints(std::get<0>(constraints),
std::get<1>(constraints),
std::get<2>(constraints));
}
void ProblemSolver::createPrePlacementConstraint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment