|
Biorbd Release_1.13.0
|
Base class for Fatigue states models. More...
#include <FatigueState.h>
Public Member Functions | |
| FatigueState (const utils::Scalar &active=1, const utils::Scalar &fatigued=0, const utils::Scalar &resting=0) | |
| Construct fatigue state. | |
| FatigueState (const FatigueState &other) | |
| Construct fatigue state from another fatigue state. | |
| FatigueState (const std::shared_ptr< FatigueState > other) | |
| Construct fatigue state from another fatigue state. | |
| virtual | ~FatigueState () |
| Destroy class properly. | |
| FatigueState | DeepCopy () const |
| Deep copy of the fatigue state. | |
| void | DeepCopy (const FatigueState &other) |
| Deep copy of fatigue state in another fatigue state. | |
| virtual void | setState (utils::Scalar active, utils::Scalar fatigued, utils::Scalar resting, bool turnOffWarnings=false) |
| Safe set of the state (ensure that sum of all activation is 1). | |
| const utils::Scalar & | activeFibers () const |
| Return the propotion of active muscle fibers. | |
| const utils::Scalar & | fatiguedFibers () const |
| Return the propotion of fatigued muscle fibers. | |
| const utils::Scalar & | restingFibers () const |
| Return the propotion of resting muscle fibers. | |
| STATE_FATIGUE_TYPE | getType () const |
| Return the type of muscle fatigue model. | |
Protected Member Functions | |
| virtual void | setType () |
| Set the type. | |
Protected Attributes | |
| std::shared_ptr< utils::Scalar > | m_activeFibers |
| Proportion of active muscle fibers. | |
| std::shared_ptr< utils::Scalar > | m_fatiguedFibers |
| Proportion of fatigued muscle fibers. | |
| std::shared_ptr< utils::Scalar > | m_restingFibers |
| Proportion of resting muscle fibers. | |
| std::shared_ptr< STATE_FATIGUE_TYPE > | m_type |
| Type of the muscle fatigue model. | |
Base class for Fatigue states models.
Definition at line 18 of file FatigueState.h.
| internal_forces::muscles::FatigueState::FatigueState | ( | const utils::Scalar & | active = 1, |
| const utils::Scalar & | fatigued = 0, | ||
| const utils::Scalar & | resting = 0 ) |
Construct fatigue state.
| active | Active muscle |
| fatigued | Muscle fatigue |
| resting | Resting muscle |
Definition at line 22 of file FatigueState.cpp.
| internal_forces::muscles::FatigueState::FatigueState | ( | const FatigueState & | other | ) |
Construct fatigue state from another fatigue state.
| other | The other fatigure state |
Definition at line 33 of file FatigueState.cpp.
| internal_forces::muscles::FatigueState::FatigueState | ( | const std::shared_ptr< FatigueState > | other | ) |
Construct fatigue state from another fatigue state.
| other | The other fatigure state |
Definition at line 40 of file FatigueState.cpp.
|
virtual |
Destroy class properly.
Definition at line 47 of file FatigueState.cpp.
| const utils::Scalar & internal_forces::muscles::FatigueState::activeFibers | ( | ) | const |
Return the propotion of active muscle fibers.
Definition at line 139 of file FatigueState.cpp.
| internal_forces::muscles::FatigueState internal_forces::muscles::FatigueState::DeepCopy | ( | ) | const |
Deep copy of the fatigue state.
Definition at line 50 of file FatigueState.cpp.
| void internal_forces::muscles::FatigueState::DeepCopy | ( | const FatigueState & | other | ) |
Deep copy of fatigue state in another fatigue state.
| other | The fatigue state to copy |
Definition at line 56 of file FatigueState.cpp.
| const utils::Scalar & internal_forces::muscles::FatigueState::fatiguedFibers | ( | ) | const |
Return the propotion of fatigued muscle fibers.
Definition at line 144 of file FatigueState.cpp.
| internal_forces::muscles::STATE_FATIGUE_TYPE internal_forces::muscles::FatigueState::getType | ( | ) | const |
Return the type of muscle fatigue model.
Definition at line 155 of file FatigueState.cpp.
| const utils::Scalar & internal_forces::muscles::FatigueState::restingFibers | ( | ) | const |
Return the propotion of resting muscle fibers.
Definition at line 149 of file FatigueState.cpp.
|
virtual |
Safe set of the state (ensure that sum of all activation is 1).
| active | Proportion of the activated fibers in the muscle |
| fatigued | Proportion of the fatigued fibers in the muscle |
| resting | Proportion of the resting fibers in the muscle |
| turnOffWarnings | If the warnings should be OFF or ON. |
Definition at line 65 of file FatigueState.cpp.
|
protectedvirtual |
Set the type.
Reimplemented in BIORBD_NAMESPACE::internal_forces::muscles::FatigueDynamicStateXia.
Definition at line 159 of file FatigueState.cpp.
|
protected |
Proportion of active muscle fibers.
Definition at line 101 of file FatigueState.h.
|
protected |
Proportion of fatigued muscle fibers.
Definition at line 103 of file FatigueState.h.
|
protected |
Proportion of resting muscle fibers.
Definition at line 105 of file FatigueState.h.
|
protected |
Type of the muscle fatigue model.
Definition at line 112 of file FatigueState.h.