1#ifndef BIORBD_MUSCLES_CHARACTERISTICS_H
2#define BIORBD_MUSCLES_CHARACTERISTICS_H
4#include "biorbdConfig.h"
9#include "Utils/Scalar.h"
11namespace BIORBD_NAMESPACE {
12namespace internal_forces {
48 const utils::Scalar& optLength,
49 const utils::Scalar& fmax,
50 const utils::Scalar&
PCSA,
52 const utils::Scalar& pennAngle,
57 const utils::Scalar& torqueAct = 0.01,
58 const utils::Scalar& torqueDeact = 0.04,
59 const utils::Scalar& minAct = 0.01);
128 void setPCSA(
const utils::Scalar& val);
134 const utils::Scalar&
PCSA()
const;
222 std::shared_ptr<utils::Scalar>
226 std::shared_ptr<bool>
228 std::shared_ptr<State>
231 std::shared_ptr<utils::Scalar>
236 std::shared_ptr<utils::Scalar>
238 std::shared_ptr<utils::Scalar>
242 std::shared_ptr<FatigueParameters>
void setTendonSlackLength(const utils::Scalar &val)
Set the tendon slack length.
const FatigueParameters & fatigueParameters() const
Return the fatigue parameters.
const utils::Scalar & torqueActivation() const
Return the time activation constant.
void setOptimalLength(const utils::Scalar &val)
Set the length without tension.
virtual void setForceIsoMax(const utils::Scalar &val)
Set the maximal isometric force.
const utils::Scalar & pennationAngle() const
Return the angle of pennation.
const utils::Scalar & forceIsoMax() const
Return the maximal isometric force at optimal length.
std::shared_ptr< utils::Scalar > m_PCSA
Physiological cross-sectional area of the muscle.
const utils::Scalar & minActivation() const
Return the minimal activation of the muscle.
bool useDamping() const
Return 1 if use damping for muscle computation.
void setStateMax(const State &emgMax)
Set the maximal excitation and activation of the muscle.
const utils::Scalar & torqueDeactivation() const
Return the time deactivation constant.
const State & stateMax() const
Return the maximal excitation and activation of the muscle.
std::shared_ptr< utils::Scalar > m_minActivation
Minimal activation.
void setTorqueActivation(const utils::Scalar &val)
Set the time activation constant.
std::shared_ptr< FatigueParameters > m_fatigueParameters
Fatigue parameters.
std::shared_ptr< utils::Scalar > m_maxShorteningSpeed
Maximal velocity of shortening.
std::shared_ptr< utils::Scalar > m_torqueDeactivation
Time deactivation constant.
const utils::Scalar & maxShorteningSpeed() const
Return the maximal velocity of shortening.
void setPCSA(const utils::Scalar &val)
Set the physiological cross-sectional area of the muscle.
void setPennationAngle(const utils::Scalar &val)
Set the angle of pennation.
virtual const utils::Scalar & optimalLength() const
Return the optimal length at which maximal force occurs.
std::shared_ptr< utils::Scalar > m_torqueActivation
Time activation constant.
Characteristics()
Construct characteristics.
void setFatigueParameters(const FatigueParameters &fatigueParameters)
Set the fatigue parameters.
std::shared_ptr< bool > m_useDamping
Use damping for muscle force from activation.
void setMaxShorteningSpeed(const utils::Scalar &val)
Set the maximal velocity of shortening.
const utils::Scalar & tendonSlackLength() const
Return the tendon slack length.
std::shared_ptr< State > m_stateMax
Maximal excitation et activation of the muscle.
const utils::Scalar & PCSA() const
Return the physiological cross-sectional area of the muscle.
std::shared_ptr< utils::Scalar > m_fIsoMax
Maximal isometric force.
void setMinActivation(const utils::Scalar &val)
Set the minimal activation of the muscle.
std::shared_ptr< utils::Scalar > m_tendonSlackLength
Tendon slack length.
void setTorqueDeactivation(const utils::Scalar &val)
Set the time deactivation constant.
void setUseDamping(bool val)
Choose if use damping for muscle force computation.
std::shared_ptr< utils::Scalar > m_optimalLength
Length without tension.
Characteristics DeepCopy() const
Deep copy of characteristics.
std::shared_ptr< utils::Scalar > m_pennationAngle
Angle of pennation.
Class FatigueParameters that holds the muscle fatigue parameters.
EMG holder to interact with the muscle.