Biorbd Release_1.13.0
Loading...
Searching...
No Matches
LigamentConstant.h
1#ifndef BIORBD_LIGAMENTS_LIGAMENT_CONSTANT_H
2#define BIORBD_LIGAMENTS_LIGAMENT_CONSTANT_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/Ligaments/Ligament.h"
7#include "Utils/Scalar.h"
8
9namespace BIORBD_NAMESPACE {
10namespace internal_forces {
11class Geometry;
12namespace ligaments {
13
16class BIORBD_API LigamentConstant : public Ligament {
17 public:
22
31 const utils::Scalar& force,
32 const utils::String& name,
33 const Geometry& geometry,
35
45 const utils::Scalar& force,
46 const utils::String& name,
47 const Geometry& geometry,
49 const internal_forces::PathModifiers& pathModifiers);
50
55 LigamentConstant(const Ligament& other);
56
61 LigamentConstant(const std::shared_ptr<Ligament> other);
62
66 virtual ~LigamentConstant();
67
73
78 void DeepCopy(const LigamentConstant& other);
79
83 virtual void computeFl();
84
85 protected:
89 virtual void setType();
90
91 std::shared_ptr<utils::Scalar>
93};
94
95} // namespace ligaments
96} // namespace internal_forces
97} // namespace BIORBD_NAMESPACE
98
99#endif // BIORBD_LIGAMENTS_LIGAMENT_CONSTANT_H
const utils::String & name() const
Return the name of the muscle.
Definition Compound.cpp:48
Class Geometry of the muscle.
Definition Geometry.h:31
Holder of all the path modifiers of a muscle.
std::shared_ptr< utils::Scalar > m_force
Force of the ligament applied when l>l0.
LigamentConstant DeepCopy() const
Deep copy of a ligament constant.
const LigamentCharacteristics & characteristics() const
Return the ligament characteristics.
Definition Ligament.cpp:237
virtual const utils::Scalar & force(rigidbody::Joints &updatedModel, const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot, bool updateLigamentKinematics=true)
Return the computed force norm.
Definition Ligament.cpp:173
Wrapper around the std::string class with augmented functionality.
Definition String.h:18