1#ifndef BIORBD_MUSCLES_HILL_TYPE_H
2#define BIORBD_MUSCLES_HILL_TYPE_H
4#include "biorbdConfig.h"
6#include "InternalForces/Muscles/Muscle.h"
7#include "Utils/Scalar.h"
9namespace BIORBD_NAMESPACE {
10namespace internal_forces {
95 HillType(
const std::shared_ptr<Muscle> other);
114 virtual const utils::Scalar&
force(
const State& emg);
126 virtual const utils::Scalar&
force(
131 bool updateMuscleParameters =
true);
142 virtual const utils::Scalar&
force(
146 bool updateMuscleParameters =
true);
153 const utils::Scalar&
FlCE(
const State& emg);
159 const utils::Scalar&
FlPE();
165 const utils::Scalar&
FvCE();
171 const utils::Scalar&
damping();
215 std::shared_ptr<utils::Scalar>
217 std::shared_ptr<utils::Scalar>
219 std::shared_ptr<utils::Scalar>
223 std::shared_ptr<utils::Scalar>
225 std::shared_ptr<utils::Scalar>
227 std::shared_ptr<utils::Scalar>
229 std::shared_ptr<utils::Scalar>
231 std::shared_ptr<utils::Scalar>
233 std::shared_ptr<utils::Scalar>
235 std::shared_ptr<utils::Scalar>
237 std::shared_ptr<utils::Scalar>
const utils::String & name() const
Return the name of the muscle.
Holder of all the path modifiers of a muscle.
Class Holds that muscle characteristics.
std::shared_ptr< utils::Scalar > m_cste_FlPE_2
constant 2 used in the FlPE
HillType()
Contruct a Hill-type muscle.
const utils::Scalar & FvCE()
Return the Force-Velocity of the contractile element.
std::shared_ptr< utils::Scalar > m_damping
Muscle damping (spring force).
std::shared_ptr< utils::Scalar > m_cste_FlPE_1
constant 1 used in the FlPE
HillType DeepCopy() const
Deep copy of a Hill-type muscle.
const utils::Scalar & FlCE(const State &emg)
Return the Force-Length of the contractile element.
std::shared_ptr< utils::Scalar > m_cste_FlCE_2
constant 2 used in the FlCE
virtual void computeFlCE(const State &emg)
Compute the Force-length of the contractile element.
virtual void computeFvCE()
Compute the Force-Velocity of the contractile element.
std::shared_ptr< utils::Scalar > m_FlCE
Force-Length of the contractile element.
const utils::Scalar & damping()
Return the muscle damping (spring force).
virtual void computeDamping()
Compute the muscle damping.
std::shared_ptr< utils::Scalar > m_FvCE
Force-Velocity of the contractile element.
virtual void computeFlPE()
Compute the Force-Length of the passive element.
std::shared_ptr< utils::Scalar > m_cste_FvCE_1
constant 1 used in the FvCE
std::shared_ptr< utils::Scalar > m_cste_FvCE_2
constant 2 used in the FvCE
std::shared_ptr< utils::Scalar > m_cste_FlCE_1
constant 1 used in the FlCE
virtual utils::Scalar getForceFromActivation(const State &emg)
Function allowing modification of the way the multiplication is done in computeForce(EMG).
virtual void setType()
Set type to Hill.
std::shared_ptr< utils::Scalar > m_cste_damping
parameters used in damping
std::shared_ptr< utils::Scalar > m_FlPE
Force-Length of the passive element.
const utils::Scalar & FlPE()
Return the Force-Length of the passive element.
std::shared_ptr< utils::Scalar > m_cste_eccentricForceMultiplier
Constant used for ForceVelocity.
virtual void normalizeEmg(State &emg)
Normalize the EMG data.
virtual const utils::Scalar & force(const State &emg)
Return the muscle force vector at origin and insertion.
Class muscle geometry of the muscle.
Characteristics & characteristics() const
Return the muscle characteristics.
Muscle()
Construct a muscle.
EMG holder to interact with the muscle.
Class GeneralizedCoordinates.
Class GeneralizedVelocity.
This is the core of the musculoskeletal model in biorbd.
Wrapper around the std::string class with augmented functionality.