Biorbd Release_1.13.0
Loading...
Searching...
No Matches
IdealizedActuator.cpp
1#define BIORBD_API_EXPORTS
2#include "InternalForces/Muscles/IdealizedActuator.h"
3
4#include "InternalForces/Muscles/Characteristics.h"
5#include "InternalForces/Muscles/State.h"
6#include "Utils/String.h"
7
8using namespace BIORBD_NAMESPACE;
9
14
22
31
33 const utils::String &name,
36 const internal_forces::PathModifiers &pathModifiers)
37 : internal_forces::muscles::Muscle(
38 name,
39 geometry,
41 pathModifiers) {
42 setType();
43}
44
46 const utils::String &name,
49 const internal_forces::PathModifiers &pathModifiers,
51 : internal_forces::muscles::Muscle(
52 name,
53 geometry,
55 pathModifiers,
56 emg) {
57 setType();
58}
59
63
65 const std::shared_ptr<Muscle> other)
66 : internal_forces::muscles::Muscle(other) {}
67
74
79
85
95
104
105utils::Scalar
110
112 *m_type = internal_forces::muscles::MUSCLE_TYPE::IDEALIZED_ACTUATOR;
113}
const utils::String & name() const
Return the name of the muscle.
Definition Compound.cpp:48
std::shared_ptr< utils::Scalar > m_force
The last computed force.
Definition Compound.h:108
virtual const utils::Scalar & force()
Return the last computed muscle force norm.
Definition Compound.cpp:63
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.
Characteristics & characteristics() const
Return the muscle characteristics.
Definition Muscle.cpp:254
virtual void computeForce(const State &emg)
Computer the forces from a specific emg.
Definition Muscle.cpp:222
std::shared_ptr< MUSCLE_TYPE > m_type
The type of the muscle.
Definition Muscle.h:343
void DeepCopy(const Muscle &other)
Deep copy of a muscle in new muscle.
Definition Muscle.cpp:120
EMG holder to interact with the muscle.
Definition State.h:17
const utils::Scalar & activation() const
Return the muscle activation.
Definition State.cpp:117
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