Commit 83d81c9f authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

[ProblemSolver] Remove deprecated method.

parent ca274349
......@@ -223,12 +223,6 @@ namespace hpp {
/// Add a constraint
void addConstraint (const ConstraintPtr_t& constraint);
/// Add a LockedJoint
/// \deprecated use lockedJoints.add and addLockedJointToConfigProjector
/// instead
void addLockedJoint (const LockedJointPtr_t& lockedJoint)
HPP_CORE_DEPRECATED;
/// Get constraint set
const ConstraintSetPtr_t& constraints () const
{
......
......@@ -532,20 +532,6 @@ namespace hpp {
hppDout (error, "Cannot add constraint while robot is not set");
}
void ProblemSolver::addLockedJoint (const LockedJointPtr_t& lj)
{
if (!robot_) {
hppDout (error, "Cannot add constraint while robot is not set");
}
ConfigProjectorPtr_t configProjector = constraints_->configProjector ();
if (!configProjector) {
configProjector = ConfigProjector::create
(robot_, "ConfigProjector", errorThreshold_, maxIterProjection_);
constraints_->addConstraint (configProjector);
}
configProjector->add (lj);
}
void ProblemSolver::resetConstraints ()
{
if (robot_) {
......
Markdown is supported
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