|
Biorbd Release_1.13.0
|
#include <Ligaments.h>
Public Member Functions | |
| Ligaments () | |
| Construct ligaments. | |
| Ligaments (const Ligaments &other) | |
| Construct ligaments from other ligaments. | |
| virtual | ~Ligaments () |
| Destroy class properly. | |
| Ligaments | DeepCopy () const |
| Deep copy of ligaments. | |
| void | DeepCopy (const Ligaments &other) |
| Deep copy of ligaments into another mucles. | |
| std::vector< std::shared_ptr< Ligament > > & | ligaments () |
| Returns all the ligaments. It sorts the ligaments by group. | |
| const std::vector< std::shared_ptr< Ligament > > & | ligaments () const |
| Returns all the ligaments. It sorts the ligaments by group. | |
| Ligament & | ligament (size_t idx) |
| Returns a specific ligament sorted by ligaments(). | |
| const Ligament & | ligament (size_t idx) const |
| Returns a specific ligament sorted by ligaments(). | |
| std::vector< utils::String > | ligamentNames () const |
| ligamentNames Return the names for all the ligament ordered by their respective name | |
| rigidbody::GeneralizedTorque | ligamentsJointTorque (const utils::Vector &F) |
| Compute the ligament joint torque. | |
| rigidbody::GeneralizedTorque | ligamentsJointTorque (const utils::Vector &F, rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, bool updateLigamentKinematics=true) |
| Compute the ligament joint torque. | |
| rigidbody::GeneralizedTorque | ligamentsJointTorque (const utils::Vector &F, const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, int updateKin=2) |
| Compute the ligament joint torque. | |
| rigidbody::GeneralizedTorque | ligamentsJointTorque (rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, bool updateLigamentKinematics=true) |
| Compute the ligament joint torque. | |
| rigidbody::GeneralizedTorque | ligamentsJointTorque (const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, int updateKin=2) |
| Compute the ligament joint torque. | |
| utils::Matrix | ligamentsLengthJacobian () const |
| Return the previously computed ligament length jacobian. | |
| utils::Matrix | ligamentsLengthJacobian (rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, bool updateLigamentKinematics=true) |
| Compute and return the ligament length Jacobian. | |
| utils::Matrix | ligamentsLengthJacobian (const rigidbody::GeneralizedCoordinates &Q, int updateKin=2) |
| Compute and return the ligament length Jacobian. | |
| utils::Vector | ligamentForces (rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, bool updateLigamentKinematics=true) |
| Compute and return the ligament forces. | |
| utils::Vector | ligamentForces (const rigidbody::GeneralizedCoordinates &Q, int updateKin=2) |
| Compute and return the ligament forces. | |
| utils::Vector | ligamentForces (rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, bool updateLigamentKinematics=true) |
| Compute and return the ligament forces. | |
| utils::Vector | ligamentForces (const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, int updateKin=2) |
| Compute and return the ligament forces. | |
| size_t | nbLigaments () const |
| Return the total number of ligament. | |
| int | ligamentID (const utils::String &name) |
| Return the ligament index. | |
| void | addLigament (const Ligament &ligament) |
| Add a ligament to the set of ligaments. | |
| void | updateLigaments (rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q) |
| Update all the ligaments (positions, jacobian, etc.). | |
| void | updateLigaments (const rigidbody::GeneralizedCoordinates &Q, bool updateKin=true) |
| Update all the ligaments (positions, jacobian, etc.). | |
| void | updateLigaments (rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot) |
| Update all the ligaments (positions, jacobian, etc.). | |
| void | updateLigaments (const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, bool updateKin=true) |
| Update all the ligaments (positions, jacobian, etc.). | |
| void | updateLigaments (rigidbody::Joints &updatedModel, std::vector< std::vector< utils::Vector3d > > &ligamentPointsInGlobal, std::vector< utils::Matrix > &jacoPointsInGlobal, const rigidbody::GeneralizedVelocity &Qdot) |
| Update by hand all the ligaments (positions, jacobian, velocity, etc.). | |
| void | updateLigaments (std::vector< std::vector< utils::Vector3d > > &ligamentPointsInGlobal, std::vector< utils::Matrix > &jacoPointsInGlobal) |
| Update by hand all the ligaments (positions, jacobian, velocity, etc.). | |
Protected Member Functions | |
| utils::Matrix | computeLigamentsLengthJacobian (const rigidbody::Joints &model) const |
| Assemble the ligament length jacobian using the provided model. | |
Protected Attributes | |
| std::shared_ptr< std::vector< std::shared_ptr< Ligament > > > | m_ligaments |
| Holder for ligament groups. | |
Ligament holder.
Definition at line 31 of file Ligaments.h.
| internal_forces::ligaments::Ligaments::Ligaments | ( | ) |
Construct ligaments.
Definition at line 18 of file Ligaments.cpp.
| internal_forces::ligaments::Ligaments::Ligaments | ( | const Ligaments & | other | ) |
Construct ligaments from other ligaments.
| other | The other ligaments |
Definition at line 23 of file Ligaments.cpp.
|
virtual |
Destroy class properly.
Definition at line 27 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::addLigament | ( | const Ligament & | ligament | ) |
Add a ligament to the set of ligaments.
| ligament | The ligament to add |
Definition at line 80 of file Ligaments.cpp.
|
protected |
Assemble the ligament length jacobian using the provided model.
| model | The joint model updated to the proper kinematics level |
Definition at line 286 of file Ligaments.cpp.
| internal_forces::ligaments::Ligaments internal_forces::ligaments::Ligaments::DeepCopy | ( | ) | const |
Deep copy of ligaments.
Definition at line 30 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::DeepCopy | ( | const Ligaments & | other | ) |
Deep copy of ligaments into another mucles.
| other | The ligaments to copy |
Definition at line 36 of file Ligaments.cpp.
| internal_forces::ligaments::Ligament & internal_forces::ligaments::Ligaments::ligament | ( | size_t | idx | ) |
Returns a specific ligament sorted by ligaments().
| idx | The ligament index |
Definition at line 67 of file Ligaments.cpp.
| const internal_forces::ligaments::Ligament & internal_forces::ligaments::Ligaments::ligament | ( | size_t | idx | ) | const |
Returns a specific ligament sorted by ligaments().
| idx | The ligament index |
Definition at line 74 of file Ligaments.cpp.
| utils::Vector internal_forces::ligaments::Ligaments::ligamentForces | ( | const rigidbody::GeneralizedCoordinates & | Q, |
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| int | updateKin = 2 ) |
Compute and return the ligament forces.
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateKin | If the kinematics should be updated (0 => no update required, 1 => Only ligament parameters, 2 => Joints model and ligaments) |
Definition at line 255 of file Ligaments.cpp.
| utils::Vector internal_forces::ligaments::Ligaments::ligamentForces | ( | const rigidbody::GeneralizedCoordinates & | Q, |
| int | updateKin = 2 ) |
Compute and return the ligament forces.
| Q | The generalized coordinates |
| updateKin | If the kinematics should be updated (0 => no update required, 1 => Only ligament parameters, 2 => Joints model and ligaments) |
Definition at line 216 of file Ligaments.cpp.
| utils::Vector internal_forces::ligaments::Ligaments::ligamentForces | ( | rigidbody::Joints & | updatedModel, |
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| bool | updateLigamentKinematics = true ) |
Compute and return the ligament forces.
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
| updateLigamentKinematics | If the kinematics parameters of the ligaments should be updated |
Definition at line 201 of file Ligaments.cpp.
| utils::Vector internal_forces::ligaments::Ligaments::ligamentForces | ( | rigidbody::Joints & | updatedModel, |
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| bool | updateLigamentKinematics = true ) |
Compute and return the ligament forces.
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateLigamentKinematics | If the kinematics parameters of the ligaments should be updated |
Definition at line 239 of file Ligaments.cpp.
| int internal_forces::ligaments::Ligaments::ligamentID | ( | const utils::String & | name | ) |
Return the ligament index.
| name | The name of the ligament |
Definition at line 345 of file Ligaments.cpp.
| std::vector< utils::String > internal_forces::ligaments::Ligaments::ligamentNames | ( | ) | const |
ligamentNames Return the names for all the ligament ordered by their respective name
Definition at line 107 of file Ligaments.cpp.
| std::vector< std::shared_ptr< internal_forces::ligaments::Ligament > > & internal_forces::ligaments::Ligaments::ligaments | ( | ) |
Returns all the ligaments. It sorts the ligaments by group.
Definition at line 336 of file Ligaments.cpp.
| const std::vector< std::shared_ptr< internal_forces::ligaments::Ligament > > & internal_forces::ligaments::Ligaments::ligaments | ( | ) | const |
Returns all the ligaments. It sorts the ligaments by group.
Definition at line 341 of file Ligaments.cpp.
| rigidbody::GeneralizedTorque internal_forces::ligaments::Ligaments::ligamentsJointTorque | ( | const rigidbody::GeneralizedCoordinates & | Q, |
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| int | updateKin = 2 ) |
Compute the ligament joint torque.
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateKin | If the kinematics should be updated (0 => no update required, 1 => Only ligament parameters, 2 => Joints model and ligaments) |
This function updates the ligaments and then performs the computation for the ligament joint torque is done from virtual power:
i.e. \(-J \times F\)
where \(J\) is the ligament lengths jacobian and \(F\) is the force vector of all the ligaments
Warning: This function assumes that ligaments are already updated (via updateligaments)
Definition at line 178 of file Ligaments.cpp.
| rigidbody::GeneralizedTorque internal_forces::ligaments::Ligaments::ligamentsJointTorque | ( | const utils::Vector & | F | ) |
Compute the ligament joint torque.
| F | The force vector of all the ligaments |
The computation for the ligament joint torque is done from virtual power:
i.e. \(-J \times F\)
where \(J\) is the ligament lengths jacobian and \(F\) is the force vector of all the ligaments
Warning: This function assumes that ligaments are already updated (via updateligaments)
Definition at line 117 of file Ligaments.cpp.
| rigidbody::GeneralizedTorque internal_forces::ligaments::Ligaments::ligamentsJointTorque | ( | const utils::Vector & | F, |
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| int | updateKin = 2 ) |
Compute the ligament joint torque.
| F | The force vector of all the ligaments |
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateKin | If the kinematics should be updated (0 => no update required, 1 => Only ligament parameters, 2 => Joints model and ligaments) |
This function updates the ligaments and then performs the computation for the ligament joint torque is done from virtual power:
i.e. \(-J \times F\)
where \(J\) is the ligament lengths jacobian and \(F\) is the force vector of all the ligaments
Warning: This function assumes that ligaments are already updated (via updateligaments)
Definition at line 141 of file Ligaments.cpp.
| rigidbody::GeneralizedTorque internal_forces::ligaments::Ligaments::ligamentsJointTorque | ( | const utils::Vector & | F, |
| rigidbody::Joints & | updatedModel, | ||
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| bool | updateLigamentKinematics = true ) |
Compute the ligament joint torque.
| F | The force vector of all the ligaments |
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateLigamentKinematics | If the ligament kinematics parameters should be updated |
This function updates the ligaments and then performs the computation for the ligament joint torque is done from virtual power:
i.e. \(-J \times F\)
where \(J\) is the ligament lengths jacobian and \(F\) is the force vector of all the ligaments
Warning: This function assumes that ligaments are already updated (via updateligaments)
Definition at line 128 of file Ligaments.cpp.
| rigidbody::GeneralizedTorque internal_forces::ligaments::Ligaments::ligamentsJointTorque | ( | rigidbody::Joints & | updatedModel, |
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| bool | updateLigamentKinematics = true ) |
Compute the ligament joint torque.
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateLigamentKinematics | If the ligament kinematics parameters should be updated |
This function updates the ligaments and then performs the computation for the ligament joint torque is done from virtual power:
i.e. \(-J \times F\)
where \(J\) is the ligament lengths jacobian and \(F\) is the force vector of all the ligaments
Warning: This function assumes that ligaments are already updated (via updateligaments)
Definition at line 167 of file Ligaments.cpp.
| utils::Matrix internal_forces::ligaments::Ligaments::ligamentsLengthJacobian | ( | ) | const |
Return the previously computed ligament length jacobian.
Definition at line 278 of file Ligaments.cpp.
| utils::Matrix internal_forces::ligaments::Ligaments::ligamentsLengthJacobian | ( | const rigidbody::GeneralizedCoordinates & | Q, |
| int | updateKin = 2 ) |
Compute and return the ligament length Jacobian.
| Q | The generalized coordinates |
| updateKin | If the kinematics should be updated (0 => no update required, 1 => Only ligament parameters, 2 => Joints model and ligaments) |
Definition at line 309 of file Ligaments.cpp.
| utils::Matrix internal_forces::ligaments::Ligaments::ligamentsLengthJacobian | ( | rigidbody::Joints & | updatedModel, |
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| bool | updateLigamentKinematics = true ) |
Compute and return the ligament length Jacobian.
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
| updateLigamentKinematics | If the ligament kinematics parameters should be updated |
Definition at line 300 of file Ligaments.cpp.
| size_t internal_forces::ligaments::Ligaments::nbLigaments | ( | ) | const |
Return the total number of ligament.
Definition at line 331 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::updateLigaments | ( | const rigidbody::GeneralizedCoordinates & | Q, |
| bool | updateKin = true ) |
Update all the ligaments (positions, jacobian, etc.).
| Q | The generalized coordinates |
| updateKin | If the joint model should be updated |
Definition at line 387 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::updateLigaments | ( | const rigidbody::GeneralizedCoordinates & | Q, |
| const rigidbody::GeneralizedVelocity & | Qdot, | ||
| bool | updateKin = true ) |
Update all the ligaments (positions, jacobian, etc.).
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateKin | If the joint model should be updated |
Definition at line 364 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::updateLigaments | ( | rigidbody::Joints & | updatedModel, |
| const rigidbody::GeneralizedCoordinates & | Q ) |
Update all the ligaments (positions, jacobian, etc.).
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
Definition at line 379 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::updateLigaments | ( | rigidbody::Joints & | updatedModel, |
| const rigidbody::GeneralizedCoordinates & | Q, | ||
| const rigidbody::GeneralizedVelocity & | Qdot ) |
Update all the ligaments (positions, jacobian, etc.).
| updatedModel | The joint model updated to the proper kinematics level |
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
Definition at line 355 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::updateLigaments | ( | rigidbody::Joints & | updatedModel, |
| std::vector< std::vector< utils::Vector3d > > & | ligamentPointsInGlobal, | ||
| std::vector< utils::Matrix > & | jacoPointsInGlobal, | ||
| const rigidbody::GeneralizedVelocity & | Qdot ) |
Update by hand all the ligaments (positions, jacobian, velocity, etc.).
| updatedModel | The joint model updated to the proper kinematics level |
| ligamentPointsInGlobal | The ligament points in global reference frame |
| jacoPointsInGlobal | The jacobian points in global reference frame |
| Qdot | The generalized velocities |
Definition at line 401 of file Ligaments.cpp.
| void internal_forces::ligaments::Ligaments::updateLigaments | ( | std::vector< std::vector< utils::Vector3d > > & | ligamentPointsInGlobal, |
| std::vector< utils::Matrix > & | jacoPointsInGlobal ) |
Update by hand all the ligaments (positions, jacobian, velocity, etc.).
| ligamentPointsInGlobal | The ligament points in global reference frame |
| jacoPointsInGlobal | The jacobian points in global reference frame |
Definition at line 412 of file Ligaments.cpp.
|
protected |
Holder for ligament groups.
Definition at line 394 of file Ligaments.h.