@@ -90,53 +90,49 @@ class BIORBD_API Ligament : public Compound
9090
9191 // /
9292 // / \brief Get the length of the ligament
93- // / \param model The joint model
93+ // / \param updatedModel The joint model updated to the proper kinematic level
9494 // / \param Q The generalized coordinates
95- // / \param updateKin Update kinematics (0: don't update, 1:only ligaments, [2: both kinematics and ligaments])
95+ // / \param updateLigamentKinematics If the kinematic parameters of the ligament should be updated
9696 // / \return The length of the ligament
9797 // /
9898 const utils::Scalar& length (
99- rigidbody::Joints& model ,
99+ rigidbody::Joints& updatedModel ,
100100 const rigidbody::GeneralizedCoordinates& Q,
101- int updateKin = 2 );
101+ bool updateLigamentKinematics = true );
102102
103103 // /
104104 // / \brief Return the velocity of the ligament
105- // / \param model The joint model
105+ // / \param updatedModel The joint model
106106 // / \param Q The generalized coordinates
107107 // / \param Qdot The generalized velocities
108- // / \param updateKin Update kinematics (0: don't update, 1:only ligaments, [2: both kinematics and ligaments])
108+ // / \param updateLigamentKinematics If the kinematic parameters of the ligament should be updated
109109 // // \return The velocity of the ligament
110110 // /
111111 const utils::Scalar& velocity (
112- rigidbody::Joints& model ,
112+ rigidbody::Joints& updatedModel ,
113113 const rigidbody::GeneralizedCoordinates& Q,
114114 const rigidbody::GeneralizedVelocity& Qdot,
115- bool updateKin = true );
115+ bool updateLigamentKinematics = true );
116116
117117 // /
118118 // / \brief Update the position of the origin and insertion positions of the ligament
119- // / \param model The joint model
119+ // / \param updatedModel The joint model updated to the proper kinematic level
120120 // / \param Q The generalized coordinates
121- // / \param updateKin Update kinematics (0: don't update, 1:only ligaments, [2: both kinematics and ligaments])
122121 // /
123122 void updateOrientations (
124- rigidbody::Joints &model,
125- const rigidbody::GeneralizedCoordinates &Q,
126- int updateKin = 2 );
123+ rigidbody::Joints &updatedModel,
124+ const rigidbody::GeneralizedCoordinates &Q);
127125
128126 // /
129127 // / \brief Update the position of the origin and insertion nodes of the ligament
130- // / \param model The joint model
128+ // / \param updatedModel The joint model updated to the proper kinematic level
131129 // / \param Q The generalized coordinates
132130 // / \param Qdot The generalized velocities
133- // / \param updateKin Update kinematics (0: don't update, 1:only ligaments, [2: both kinematics and ligaments])
134131 // /
135132 void updateOrientations (
136- rigidbody::Joints &model ,
133+ rigidbody::Joints &updatedModel ,
137134 const rigidbody::GeneralizedCoordinates &Q,
138- const rigidbody::GeneralizedVelocity &Qdot,
139- int updateKin = 2 );
135+ const rigidbody::GeneralizedVelocity &Qdot);
140136
141137 // /
142138 // / \brief Update by hand the position of the origin and insertion nodes of the ligament
@@ -186,13 +182,15 @@ class BIORBD_API Ligament : public Compound
186182
187183 // /
188184 // / \brief Return the ligament points in global reference frame
189- // / \param model The joint model
185+ // / \param updatedModel The joint model updated to the proper kinematic level
190186 // / \param Q The generalized coordinates
187+ // / \param updateLigamentKinematics If the kinematic parameters of the ligament should be updated
191188 // / \return The ligament points in global reference frame
192189 // /
193190 const std::vector<utils::Vector3d>& ligamentsPointsInGlobal (
194- rigidbody::Joints &model,
195- const rigidbody::GeneralizedCoordinates &Q);
191+ rigidbody::Joints &updatedModel,
192+ const rigidbody::GeneralizedCoordinates &Q,
193+ bool updateLigamentKinematics = true );
196194
197195 // /
198196 // / \brief Return the previously computed ligament points in global reference frame
@@ -202,29 +200,29 @@ class BIORBD_API Ligament : public Compound
202200
203201 // /
204202 // / \brief Return the computed force norm
205- // / \param model The joints model
203+ // / \param updatedModel The joints model
206204 // / \param Q The generalized coordinates of the model
207205 // / \param Qdot The generalized velocities of the model
208- // / \param updateKin Update kinematics (0: don't update, 1:only ligaments, [2: both kinematics and ligaments])
206+ // / \param updateLigamentKinematics If the kinematic parameters of the ligament should be updated
209207 // / \return The computed force
210208 // /
211209 virtual const utils::Scalar& force (
212- rigidbody::Joints& model ,
210+ rigidbody::Joints& updatedModel ,
213211 const rigidbody::GeneralizedCoordinates& Q,
214212 const rigidbody::GeneralizedVelocity& Qdot,
215- int updateKin = 2 );
213+ bool updateLigamentKinematics = true );
216214
217215 // /
218216 // / \brief Return the computed force norm
219- // / \param model The joints model
217+ // / \param updatedModel The joint model updated to the proper kinematic level
220218 // / \param Q The generalized coordinates of the model
221- // / \param updateKin Update kinematics (0: don't update, 1:only ligaments, [2: both kinematics and ligaments])
219+ // / \param updateLigamentKinematics If the kinematic parameters of the ligament should be updated
222220 // / \return The computed force
223221 // /
224222 virtual const utils::Scalar& force (
225- rigidbody::Joints& model ,
223+ rigidbody::Joints& updatedModel ,
226224 const rigidbody::GeneralizedCoordinates& Q,
227- int updateKin = 2 );
225+ bool updateLigamentKinematics = true );
228226
229227 // /
230228 // / \brief Return the computed force norm. The ligament orientation had to be computed before calling this function.
0 commit comments