Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
BiorbdModel.cpp
1
#define BIORBD_API_EXPORTS
2
#include "BiorbdModel.h"
3
4
#include <rbdl/Model.h>
5
6
#include <rbdl/Kinematics.h>
7
8
#include "ModelReader.h"
9
#include "RigidBody/ExternalForceSet.h"
10
#include "RigidBody/GeneralizedCoordinates.h"
11
#include "RigidBody/NodeSegment.h"
12
#include "Utils/String.h"
13
14
using namespace
BIORBD_NAMESPACE;
15
16
utils::String
getVersion() {
return
BIORBD_VERSION; }
17
18
Model::Model
() : m_path(std::make_shared<utils::Path>()) {}
19
20
Model::Model
(
const
utils::Path
&
path
)
21
: m_path(std::make_shared<utils::Path>(
path
)) {
22
Reader::readModelFile
(*m_path,
this
);
23
}
24
25
utils::Path
Model::path
()
const
{
return
*m_path; }
26
27
rigidbody::ExternalForceSet
Model::externalForceSet
(
28
bool
useLinearForces,
29
bool
useSoftContacts) {
30
return
rigidbody::ExternalForceSet
(*
this
, useLinearForces, useSoftContacts);
31
}
BIORBD_NAMESPACE::Model::externalForceSet
rigidbody::ExternalForceSet externalForceSet(bool useLinearForces=true, bool useSoftContacts=true)
Get an external forces set designed for the current model.
Definition
BiorbdModel.cpp:27
BIORBD_NAMESPACE::Model::path
utils::Path path() const
Returns the path of .bioMod file used to load the model. If no file was used, it remains empty.
Definition
BiorbdModel.cpp:25
BIORBD_NAMESPACE::Model::Model
Model()
Construct an empty model that can be manually filled.
Definition
BiorbdModel.cpp:18
BIORBD_NAMESPACE::Reader::readModelFile
static Model readModelFile(const utils::Path &path)
Create a biorbd model from a bioMod file.
Definition
ModelReader.cpp:73
BIORBD_NAMESPACE::rigidbody::ExternalForceSet
An External force set that can apply forces to the model while computing the dynamics.
Definition
ExternalForceSet.h:31
BIORBD_NAMESPACE::utils::Path
Collection of methods to manipulate path.
Definition
Path.h:16
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
src
BiorbdModel.cpp
Generated by
1.18.0