Biorbd Release_1.13.0
Loading...
Searching...
No Matches
IdealizedActuator.h
1#ifndef BIORBD_MUSCLES_IDEALIZED_ACTUATOR_H
2#define BIORBD_MUSCLES_IDEALIZED_ACTUATOR_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/Muscles/Muscle.h"
7
8namespace BIORBD_NAMESPACE {
9namespace internal_forces {
10namespace muscles {
11
15class BIORBD_API IdealizedActuator : public Muscle {
16 public:
21
29 const utils::String& name,
30 const MuscleGeometry& geometry,
32
41 const utils::String& name,
42 const MuscleGeometry& geometry,
44 const State& emg);
45
54 const utils::String& name,
55 const MuscleGeometry& geometry,
57 const internal_forces::PathModifiers& pathModifiers);
58
68 const utils::String& name,
69 const MuscleGeometry& geometry,
71 const internal_forces::PathModifiers& pathModifiers,
72 const State& emg);
73
78 IdealizedActuator(const Muscle& other);
79
84 IdealizedActuator(const std::shared_ptr<Muscle> other);
85
91
96 void DeepCopy(const IdealizedActuator& other);
97
103 virtual const utils::Scalar& force(const State& emg);
104
115 virtual const utils::Scalar& force(
116 rigidbody::Joints& model,
119 const State& emg,
120 bool updateMuscleParameters = true);
121
131 virtual const utils::Scalar& force(
132 rigidbody::Joints& model,
134 const State& emg,
135 bool updateMuscleParameters = true);
136
137 protected:
143 virtual utils::Scalar getForceFromActivation(const State& emg);
144
148 virtual void setType();
149};
150
151} // namespace muscles
152} // namespace internal_forces
153} // namespace BIORBD_NAMESPACE
154
155#endif // BIORBD_MUSCLES_IDEALIZED_ACTUATOR_H
const utils::String & name() const
Return the name of the muscle.
Definition Compound.cpp:48
Holder of all the path modifiers of a muscle.
IdealizedActuator DeepCopy() const
Deep copy of an idealized actuator.
virtual utils::Scalar getForceFromActivation(const State &emg)
Function allowing modification of the way the multiplication is done in computeForce(EMG).
virtual void setType()
Set the type to Idealized_actuator.
virtual const utils::Scalar & force(const State &emg)
Return the force.
Characteristics & characteristics() const
Return the muscle characteristics.
Definition Muscle.cpp:254
EMG holder to interact with the muscle.
Definition State.h:17
This is the core of the musculoskeletal model in biorbd.
Definition Joints.h:48
Wrapper around the std::string class with augmented functionality.
Definition String.h:18