1#ifndef BIORBD_UTILS_READ_H
2#define BIORBD_UTILS_READ_H
4#include "biorbdConfig.h"
10namespace BIORBD_NAMESPACE {
62 static std::vector<rigidbody::GeneralizedCoordinates>
readQDataFile(
99 std::vector<std::vector<size_t>> &frame,
100 std::vector<size_t> &frequency,
101 std::vector<std::vector<utils::Vector3d>> &force,
102 std::vector<std::vector<utils::Vector3d>> &moment,
103 std::vector<std::vector<utils::Vector3d>> &cop);
125 int nFramesToGet = -1);
143 std::vector<utils::String> &markOrder,
144 int nFramesToGet = -1);
167#ifdef MODULE_VTP_FILES_READER
192 const std::map<utils::Equation, double> &variable,
203 const std::map<utils::Equation, double> &variable,
216 const std::map<utils::Equation, double> &variable,
The actual musculoskeletal model that holds everything in biorbd.
static rigidbody::Mesh readMeshFileObj(const utils::Path &path)
Read a OBJ file containing the meshing of a segment.
static std::vector< std::vector< utils::Vector3d > > readMarkerDataFile(const utils::Path &path)
Read a bioMark file, containing markers data.
static void readVector3d(utils::IfStream &file, const std::map< utils::Equation, double > &variable, utils::Vector3d &vector)
Read a Vector 3d.
static void readRtMatrix(utils::IfStream &file, const std::map< utils::Equation, double > &variable, bool RTinMatrix, utils::RotoTrans &RT)
Read a RT matrix either in 4x4 format or Rot1233 seq Trans123 format.
static std::vector< utils::Vector > readTorqueDataFile(const utils::Path &path)
Read a bioTorque file containing generalized torques data.
static rigidbody::Mesh readMeshFileBiorbdSegments(const utils::Path &path)
Read a bioMesh file containing the meshing of a segment.
static void readMatrix33(utils::IfStream &file, const std::map< utils::Equation, double > &variable, utils::Matrix3d &matrix)
Read a Matrix 3x3.
static std::vector< std::vector< utils::Vector3d > > readViconMarkerFile(const utils::Path &path, int nFramesToGet=-1)
Read a Vicon ASCII marker file (CSV formated).
static std::vector< rigidbody::GeneralizedCoordinates > readQDataFile(const utils::Path &path)
Read a bioKin file, containing kinematics data.
static std::vector< utils::Vector > readGroundReactionForceDataFile(const utils::Path &path)
Read a bioGRF file containing ground reaction force (GRF) data.
static Model readModelFile(const utils::Path &path)
Create a biorbd model from a bioMod file.
static rigidbody::Mesh readMeshFileStl(const utils::Path &path)
Read a STL file containing the meshing of a segment.
static rigidbody::Mesh readMeshFilePly(const utils::Path &path)
Read a PLY file containing the meshing of a segment.
static void readViconForceFile(const utils::Path &path, std::vector< std::vector< size_t > > &frame, std::vector< size_t > &frequency, std::vector< std::vector< utils::Vector3d > > &force, std::vector< std::vector< utils::Vector3d > > &moment, std::vector< std::vector< utils::Vector3d > > &cop)
Read a Vicon ASCII force file.
static std::vector< utils::Vector > readActivationDataFile(const utils::Path &path)
Read a bioMus fine, containing muscle activations data.
Class GeneralizedCoordinates.
A class that holds the geometry of a segment.
Strings that are to be interpreted as equation that can be evaluated.
Wrapper for the an std::ifstream with increased capacities.
A wrapper for the Eigen::MatrixXd.
Collection of methods to manipulate path.
Homogenous matrix to describe translations and rotations simultaneously.
Wrapper of the Eigen::Matrix<double, 6, 1> or Casadi::MX(6, 1).
Wrapper around the std::string class with augmented functionality.
Wrapper around Eigen Vector3d and attach it to a parent.
Wrapper of the Eigen VectorXd.