|
Biorbd
|
Class compound is a very generic definition of what a muscle is. It should be the base class of every muscles. More...
#include <Compound.h>
Public Member Functions | |
| Compound () | |
| Construct muscle compound. | |
| Compound (const biorbd::utils::String &name) | |
| Construct compound. More... | |
| Compound (const biorbd::utils::String &name, const biorbd::muscles::PathModifiers &pathModifiers) | |
| Construct compound. More... | |
| Compound (const biorbd::muscles::Compound &other) | |
| Construct compound from another muscle. More... | |
| Compound (const std::shared_ptr< biorbd::muscles::Compound > other) | |
| Construct compound from another muscle. More... | |
| virtual | ~Compound () |
| Destroy class properly. | |
| void | DeepCopy (const biorbd::muscles::Compound &other) |
| Deep copy of a compound. More... | |
| void | setName (const biorbd::utils::String &name) |
| Set the name of a muscle. More... | |
| const biorbd::utils::String & | name () const |
| Return the name of the muscle. More... | |
| biorbd::muscles::MUSCLE_TYPE | type () const |
| Return the type of the muscle. More... | |
| const biorbd::muscles::PathModifiers & | pathModifier () |
| Return the path modifier. More... | |
| void | addPathObject (biorbd::utils::Vector3d &wrap) |
| Add a path modifier object. More... | |
| virtual const biorbd::utils::Scalar & | force () |
| Return the last computed muscle force norm. More... | |
| virtual const biorbd::utils::Scalar & | force (const biorbd::muscles::State &emg)=0 |
| Computes and returns the forces norm from the EMG. More... | |
| virtual const biorbd::utils::Scalar & | force (biorbd::rigidbody::Joints &model, const biorbd::rigidbody::GeneralizedCoordinates &Q, const biorbd::rigidbody::GeneralizedVelocity &Qdot, const biorbd::muscles::State &emg, int updateKin=2)=0 |
| Return the computed force norm from EMG. More... | |
| virtual const biorbd::utils::Scalar & | force (biorbd::rigidbody::Joints &model, const biorbd::rigidbody::GeneralizedCoordinates &Q, const biorbd::muscles::State &emg, int updateKin=2)=0 |
| Return the computed force norm from EMG. More... | |
Protected Member Functions | |
| virtual void | setType ()=0 |
| Set the type of muscle. | |
Protected Attributes | |
| std::shared_ptr< biorbd::utils::String > | m_name |
| The name of the muscle. | |
| std::shared_ptr< biorbd::muscles::MUSCLE_TYPE > | m_type |
| The type of muscle. | |
| std::shared_ptr< biorbd::muscles::PathModifiers > | m_pathChanger |
| The set of path modifiers. | |
| std::shared_ptr< biorbd::utils::Scalar > | m_force |
| The last computed force. | |
Class compound is a very generic definition of what a muscle is. It should be the base class of every muscles.
Definition at line 29 of file Compound.h.
| biorbd::muscles::Compound::Compound | ( | const biorbd::utils::String & | name | ) |
| biorbd::muscles::Compound::Compound | ( | const biorbd::utils::String & | name, |
| const biorbd::muscles::PathModifiers & | pathModifiers | ||
| ) |
Construct compound.
| name | Name of the compound |
| pathModifiers | The set of path modifiers |
Definition at line 29 of file Compound.cpp.
| biorbd::muscles::Compound::Compound | ( | const biorbd::muscles::Compound & | other | ) |
Construct compound from another muscle.
| other | The muscle to shallow copy |
Definition at line 40 of file Compound.cpp.
| biorbd::muscles::Compound::Compound | ( | const std::shared_ptr< biorbd::muscles::Compound > | other | ) |
Construct compound from another muscle.
| other | The muscle to shallow copy |
Definition at line 50 of file Compound.cpp.
| void biorbd::muscles::Compound::addPathObject | ( | biorbd::utils::Vector3d & | wrap | ) |
Add a path modifier object.
| wrap | Position of the object |
Definition at line 92 of file Compound.cpp.
| void biorbd::muscles::Compound::DeepCopy | ( | const biorbd::muscles::Compound & | other | ) |
Deep copy of a compound.
| other | Compound to copy |
Definition at line 65 of file Compound.cpp.
|
virtual |
Return the last computed muscle force norm.
Definition at line 96 of file Compound.cpp.
|
pure virtual |
Return the computed force norm from EMG.
| model | The joints model |
| Q | The generalized coordinates of the model |
| emg | EMG data |
| updateKin | Update kinematics (0: don't update, 1:only muscles, [2: both kinematics and muscles]) |
Implemented in biorbd::muscles::HillType, and biorbd::muscles::IdealizedActuator.
|
pure virtual |
Return the computed force norm from EMG.
| model | The joints model |
| Q | The generalized coordinates of the model |
| Qdot | The generalized velocities of the model |
| emg | EMG data |
| updateKin | Update kinematics (0: don't update, 1:only muscles, [2: both kinematics and muscles]) |
Implemented in biorbd::muscles::HillType, and biorbd::muscles::IdealizedActuator.
|
pure virtual |
Computes and returns the forces norm from the EMG.
| emg | EMG data |
Implemented in biorbd::muscles::HillType, and biorbd::muscles::IdealizedActuator.
| const biorbd::utils::String & biorbd::muscles::Compound::name | ( | ) | const |
Return the name of the muscle.
Definition at line 73 of file Compound.cpp.
| const biorbd::muscles::PathModifiers & biorbd::muscles::Compound::pathModifier | ( | ) |
| void biorbd::muscles::Compound::setName | ( | const biorbd::utils::String & | name | ) |
Set the name of a muscle.
| name | Name of the muscle |
Definition at line 78 of file Compound.cpp.
| biorbd::muscles::MUSCLE_TYPE biorbd::muscles::Compound::type | ( | ) | const |
Return the type of the muscle.
Definition at line 83 of file Compound.cpp.
1.8.18