Biorbd Release_1.13.0
Loading...
Searching...
No Matches
BiorbdModel.h
1#ifndef BIORBD_MODEL_H
2#define BIORBD_MODEL_H
3
4#include "biorbdConfig.h"
5
6#include "RigidBody/Contacts.h"
7#include "RigidBody/IMUs.h"
8#include "RigidBody/Joints.h"
9#include "RigidBody/Markers.h"
10#include "RigidBody/RotoTransNodes.h"
11#include "RigidBody/SoftContacts.h"
12#include "Utils/Path.h"
13#ifdef MODULE_ACTUATORS
14#include "InternalForces/Actuators/Actuators.h"
15#endif
16#ifdef MODULE_MUSCLES
17#include "InternalForces/Muscles/Muscles.h"
18#endif
19#ifdef MODULE_PASSIVE_TORQUES
20#include "InternalForces/PassiveTorques/PassiveTorques.h"
21#endif
22#ifdef MODULE_LIGAMENTS
23#include "InternalForces/Ligaments/Ligaments.h"
24#endif
25
64
70
71namespace BIORBD_NAMESPACE {
72namespace rigidbody {
74}
75
79class BIORBD_API Model : public rigidbody::Joints,
80 public rigidbody::Markers,
81 public rigidbody::IMUs,
84#ifdef MODULE_ACTUATORS
85 ,
87#endif
88#ifdef MODULE_MUSCLES
89 ,
91#endif
92#ifdef MODULE_PASSIVE_TORQUES
93 ,
95#endif
96#ifdef MODULE_LIGAMENTS
97 ,
99#endif
100 ,
102 public:
106 Model();
107
112 Model(const utils::Path& path);
113
121 bool useLinearForces = true,
122 bool useSoftContacts = true);
123
124 private:
125 std::shared_ptr<utils::Path> m_path;
126
127 public:
133 utils::Path path() const;
134};
135
136} // namespace BIORBD_NAMESPACE
137
138#endif // BIORBD_MODEL_H
rigidbody::ExternalForceSet externalForceSet(bool useLinearForces=true, bool useSoftContacts=true)
Get an external forces set designed for the current model.
utils::Path path() const
Returns the path of .bioMod file used to load the model. If no file was used, it remains empty.
Model()
Construct an empty model that can be manually filled.
Class holder for a set of actuators.
Definition Actuators.h:28
An External force set that can apply forces to the model while computing the dynamics.
Hold a set of IMUs.
Definition IMUs.h:22
This is the core of the musculoskeletal model in biorbd.
Definition Joints.h:48
Holder for the marker set.
Definition Markers.h:26
Holder for the biorbd contact set.
Collection of methods to manipulate path.
Definition Path.h:16
Wrapper around the std::string class with augmented functionality.
Definition String.h:18