Skip to content

Commit

Permalink
[constraint] JointConstraint: minor cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
EulalieCoevoet committed Apr 9, 2024
1 parent 48ff4cd commit 2b9a1be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SoftRobots/component/constraint/JointConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec1Types> >(true)
;
////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
6 changes: 3 additions & 3 deletions src/SoftRobots/component/constraint/JointConstraint.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ class JointConstraint : public SoftRobotsConstraint<DataTypes>
void setUpForceLimits(double& imposedValue, double& minDisplacement, double& maxDisplacement);
};

// #if !defined(SOFTROBOTS_JOINTCONSTRAINT_CPP)
// extern template class SOFA_SOFTROBOTS_API JointConstraint<sofa::defaulttype::Vec1Types>;
// #endif
#if !defined(SOFTROBOTS_JOINTCONSTRAINT_CPP)
extern template class SOFA_SOFTROBOTS_API JointConstraint<sofa::defaulttype::Vec1Types>;
#endif


} // namespace
Expand Down

0 comments on commit 2b9a1be

Please sign in to comment.