Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
Compound.h
1
#ifndef BIORBD_MUSCLES_COMPOUND_H
2
#define BIORBD_MUSCLES_COMPOUND_H
3
4
#include "biorbdConfig.h"
5
6
#include <memory>
7
#include <vector>
8
9
#include "Utils/Scalar.h"
10
11
namespace
BIORBD_NAMESPACE {
12
namespace
utils {
13
class
String
;
14
class
Vector3d
;
15
}
// namespace utils
16
17
namespace
rigidbody {
18
class
Joints
;
19
class
GeneralizedCoordinates
;
20
class
GeneralizedVelocity
;
21
}
// namespace rigidbody
22
namespace
internal_forces {
23
class
PathModifiers
;
24
29
class
BIORBD_API
Compound
{
30
public
:
34
Compound
();
35
40
Compound
(
const
utils::String
&
name
);
41
47
Compound
(
48
const
utils::String
&
name
,
49
const
internal_forces::PathModifiers
& pathModifiers);
54
Compound
(
const
Compound
& other);
55
60
Compound
(
const
std::shared_ptr<Compound> other);
61
65
virtual
~Compound
();
66
71
void
DeepCopy
(
const
Compound
& other);
72
77
void
setName
(
const
utils::String
&
name
);
78
83
const
utils::String
&
name
()
const
;
84
85
// Wrapping object
90
const
internal_forces::PathModifiers
&
pathModifier
();
91
96
void
addPathObject
(
utils::Vector3d
& wrap);
97
102
virtual
const
utils::Scalar&
force
();
103
104
protected
:
105
std::shared_ptr<utils::String>
m_name
;
106
std::shared_ptr<internal_forces::PathModifiers>
107
m_pathChanger
;
108
std::shared_ptr<utils::Scalar>
m_force
;
109
};
110
111
}
// namespace internal_forces
112
}
// namespace BIORBD_NAMESPACE
113
114
#endif
// BIORBD_MUSCLES_COMPOUND_H
BIORBD_NAMESPACE::internal_forces::Compound::pathModifier
const internal_forces::PathModifiers & pathModifier()
Return the path modifier.
Definition
Compound.cpp:55
BIORBD_NAMESPACE::internal_forces::Compound::m_name
std::shared_ptr< utils::String > m_name
The name of the muscle.
Definition
Compound.h:105
BIORBD_NAMESPACE::internal_forces::Compound::name
const utils::String & name() const
Return the name of the muscle.
Definition
Compound.cpp:48
BIORBD_NAMESPACE::internal_forces::Compound::setName
void setName(const utils::String &name)
Set the name of a muscle.
Definition
Compound.cpp:50
BIORBD_NAMESPACE::internal_forces::Compound::addPathObject
void addPathObject(utils::Vector3d &wrap)
Add a path modifier object.
Definition
Compound.cpp:59
BIORBD_NAMESPACE::internal_forces::Compound::DeepCopy
void DeepCopy(const Compound &other)
Deep copy of a compound.
Definition
Compound.cpp:41
BIORBD_NAMESPACE::internal_forces::Compound::m_force
std::shared_ptr< utils::Scalar > m_force
The last computed force.
Definition
Compound.h:108
BIORBD_NAMESPACE::internal_forces::Compound::force
virtual const utils::Scalar & force()
Return the last computed muscle force norm.
Definition
Compound.cpp:63
BIORBD_NAMESPACE::internal_forces::Compound::Compound
Compound()
Construct muscle compound.
Definition
Compound.cpp:11
BIORBD_NAMESPACE::internal_forces::Compound::m_pathChanger
std::shared_ptr< internal_forces::PathModifiers > m_pathChanger
The set of path modifiers.
Definition
Compound.h:107
BIORBD_NAMESPACE::internal_forces::PathModifiers
Holder of all the path modifiers of a muscle.
Definition
PathModifiers.h:18
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition
GeneralizedVelocity.h:15
BIORBD_NAMESPACE::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition
Joints.h:48
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
BIORBD_NAMESPACE::utils::Vector3d
Wrapper around Eigen Vector3d and attach it to a parent.
Definition
Vector3d.h:27
include
InternalForces
Compound.h
Generated by
1.18.0