diff --git a/src/SoftRobots/component/constraint/JointConstraint.cpp b/src/SoftRobots/component/constraint/JointConstraint.cpp index 6ee33254..c97ae959 100644 --- a/src/SoftRobots/component/constraint/JointConstraint.cpp +++ b/src/SoftRobots/component/constraint/JointConstraint.cpp @@ -108,7 +108,7 @@ void JointForceConstraintResolution::resolution(int line, double** w, double* d, //////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -int JointConstraintClass = RegisterObject("Simulate a Force Applied on a Joint (Vec1)") +int JointConstraintClass = RegisterObject("Lagrange multiplier approach to apply a force/angle on a Joint (Vec1)") .add< JointConstraint >(true) ; //////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/SoftRobots/component/constraint/JointConstraint.h b/src/SoftRobots/component/constraint/JointConstraint.h index f0248cb3..7b9fa5c5 100644 --- a/src/SoftRobots/component/constraint/JointConstraint.h +++ b/src/SoftRobots/component/constraint/JointConstraint.h @@ -177,9 +177,9 @@ class JointConstraint : public SoftRobotsConstraint void setUpForceLimits(double& imposedValue, double& minDisplacement, double& maxDisplacement); }; -// #if !defined(SOFTROBOTS_JOINTCONSTRAINT_CPP) -// extern template class SOFA_SOFTROBOTS_API JointConstraint; -// #endif +#if !defined(SOFTROBOTS_JOINTCONSTRAINT_CPP) +extern template class SOFA_SOFTROBOTS_API JointConstraint; +#endif } // namespace