Skip to content
Snippets Groups Projects
Commit 95a7f84c authored by hdallard's avatar hdallard
Browse files

Add function to reset constraints

parent 1cdb0417
No related branches found
No related tags found
No related merge requests found
......@@ -73,10 +73,16 @@ namespace hpp {
(const DifferentiableFunctionPtr_t& function, const ComparisonTypePtr_t& ineq)
HPP_MANIPULATION_DEPRECATED;
/// Reset the numerical constraints stored in the component.
virtual void resetNumericalConstraints ();
/// Add core::LockedJoint constraint to the component.
virtual void addLockedJointConstraint
(const LockedJointPtr_t& constraint);
/// Reset the locked joint in the component.
virtual void resetLockedJoints ();
/// Insert the numerical constraints in a ConfigProjector
/// \return true is at least one NumericalConstraintPtr_t was inserted.
bool insertNumericalConstraints (ConfigProjectorPtr_t& proj) const;
......
......@@ -75,12 +75,22 @@ namespace hpp {
addNumericalConstraint (NumericalConstraint::create (function,ineq));
}
void GraphComponent::resetNumericalConstraints ()
{
numericalConstraints_.clear();
}
void GraphComponent::addLockedJointConstraint
(const LockedJointPtr_t& constraint)
{
lockedJoints_.push_back (constraint);
}
void GraphComponent::resetLockedJoints ()
{
lockedJoints_.clear();
}
bool GraphComponent::insertNumericalConstraints (ConfigProjectorPtr_t& proj) const
{
IntervalsContainer_t::const_iterator itpdof = passiveDofs_.begin ();
......
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