Biorbd
BiorbdModel.cpp
1 #define BIORBD_API_EXPORTS
2 #include "BiorbdModel.h"
3 
4 #include <rbdl/Model.h>
5 #include <rbdl/Kinematics.h>
6 #include "ModelReader.h"
7 #include "RigidBody/GeneralizedCoordinates.h"
8 #include "RigidBody/NodeSegment.h"
9 #include "Utils/String.h"
10 
11 biorbd::utils::String getVersion(){
12  return BIORBD_VERSION;
13 }
14 
16  m_path(std::make_shared<biorbd::utils::Path>())
17 {
18 
19 }
20 
22  m_path(std::make_shared<biorbd::utils::Path>(path))
23 {
24 
25  biorbd::Reader::readModelFile(*m_path, this);
26 }
27 
29 {
30  return *m_path;
31 }
biorbd::Model::Model
Model()
Construct an empty model that can be manually filled.
Definition: BiorbdModel.cpp:15
biorbd::Model::path
biorbd::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:28
biorbd::utils::String
Wrapper around the std::string class with augmented functionality.
Definition: String.h:17
biorbd::utils::Path
Collection of methods to manipulate path.
Definition: Path.h:17
biorbd::Reader::readModelFile
static biorbd::Model readModelFile(const biorbd::utils::Path &path)
Create a biorbd model from a bioMod file.
Definition: ModelReader.cpp:44