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