1#ifndef _RBDL_LUAMODEL_H
2#define _RBDL_LUAMODEL_H
4#include <rbdl/rbdl_config.h>
11#ifdef RBDL_BUILD_ADDON_MUSCLE
278 const char* filename,
280 bool verbose =
false);
285 std::vector< std::string >& updGeneralizedPositionNames,
286 std::vector< std::string >& updGeneralizedVelocityNames,
287 std::vector< std::string >& updGeneralizedForceNames);
296 const std::vector<std::string> &constraint_set_names,
297 std::vector< unsigned int > &constraint_set_phases);
312 const char* filename,
314 std::vector<MotionCaptureMarker> &upd_marker_set,
330 const char* filename,
332 std::vector<Point> &upd_point_set,
348 const char* filename,
350 std::vector<LocalFrame> &upd_local_frame_set,
373 const char* filename,
375 std::vector<ConstraintSet>& constraint_sets,
376 const std::vector<std::string>& constraint_set_names,
377 bool verbose =
false);
392 bool verbose =
false);
405 const char* filename,
407 bool verbose =
false);
410#ifdef RBDL_BUILD_ADDON_MUSCLE
436 const char* filename,
437 const RigidBodyDynamics::Model *model,
441 std::vector <Millard2016TorqueMuscleConfig> &updMtgSetInfo,
442 bool verbose =
false);
461 const RigidBodyDynamics::Model &model,
484 const std::vector<Point> &point_set,
500 const char* header_file_name,
501 const std::vector< MotionCaptureMarker > &marker_set,
517 const std::vector<LocalFrame> &local_frame_set,
535 const std::vector< std::string > &constraint_set_names,
536 const std::vector<RigidBodyDynamics::ConstraintSet> &constraint_sets,
555 const std::vector< std::string > &constraint_set_names,
556 const std::vector< unsigned int > &constraint_phases,
559#ifdef RBDL_BUILD_ADDON_MUSCLE
572 const char* header_file_name,
574 ::Millard2016TorqueMuscle> &mtg_set,
575 const std::vector<Millard2016TorqueMuscleConfig > &mtg_set_info,
This class implements a rigid-tendon muscle-torque-generator (MTG) for a growing list of joints and t...
RBDL_ADDON_DLLAPI bool LuaModelReadFromFileWithConstraints(const char *filename, Model *upd_model, std::vector< ConstraintSet > &constraint_sets, const std::vector< std::string > &constraint_set_names, bool verbose=false)
Reads a model and constraint sets from a Lua file.
RBDL_ADDON_DLLAPI bool LuaModelWriteConstraintSetHeaderEntries(const char *header_file_name, const std::vector< std::string > &constraint_set_names, const std::vector< RigidBodyDynamics::ConstraintSet > &constraint_sets, bool append)
RBDL_ADDON_DLLAPI void LuaModelGetCoordinateNames(const Model *model, std::vector< std::string > &updGeneralizedPositionNames, std::vector< std::string > &updGeneralizedVelocityNames, std::vector< std::string > &updGeneralizedForceNames)
RBDL_ADDON_DLLAPI std::vector< std::string > LuaModelGetConstraintSetNames(const char *filename)
Reads a model file and returns the names of all constraint sets.
RBDL_ADDON_DLLAPI bool LuaModelWriteMillard2016TorqueMuscleHeaderEntries(const char *header_file_name, const std::vector< RigidBodyDynamics::Addons::Muscle ::Millard2016TorqueMuscle > &mtg_set, const std::vector< Millard2016TorqueMuscleConfig > &mtg_set_info, bool append)
RBDL_ADDON_DLLAPI bool LuaModelReadMotionCaptureMarkers(const char *filename, const Model *model, std::vector< MotionCaptureMarker > &upd_marker_set, bool verbose=false)
RBDL_ADDON_DLLAPI bool LuaModelReadMillard2016TorqueMuscleSets(const char *filename, const RigidBodyDynamics::Model *model, const HumanMetaData &human_meta_data, std::vector< RigidBodyDynamics::Addons::Muscle::Millard2016TorqueMuscle > &updMtgSet, std::vector< Millard2016TorqueMuscleConfig > &updMtgSetInfo, bool verbose=false)
RBDL_ADDON_DLLAPI bool LuaModelReadHumanMetaData(const char *filename, HumanMetaData &human_meta_data, bool verbose=false)
RBDL_ADDON_DLLAPI bool LuaModelReadLocalFrames(const char *filename, const Model *model, std::vector< LocalFrame > &upd_local_frame_set, bool verbose=false)
RBDL_ADDON_DLLAPI bool LuaModelAddHeaderGuards(const char *header_file_name)
RBDL_ADDON_DLLAPI bool LuaModelWriteMotionCaptureMarkerHeaderEntries(const char *header_file_name, const std::vector< MotionCaptureMarker > &marker_set, bool append)
RBDL_ADDON_DLLAPI bool LuaModelWritePointsHeaderEntries(const char *header_file_name, const std::vector< Point > &point_set, bool append)
RBDL_ADDON_DLLAPI bool LuaModelReadFromLuaState(lua_State *L, Model *model, bool verbose=false)
Reads a model from a lua_State.
RBDL_ADDON_DLLAPI bool LuaModelWriteModelHeaderEntries(const char *header_file_name, const RigidBodyDynamics::Model &model, bool append)
RBDL_ADDON_DLLAPI bool LuaModelWriteConstraintSetPhaseHeaderEntries(const char *header_file_name, const std::vector< std::string > &constraint_set_names, const std::vector< unsigned int > &constraint_phases, bool append)
RBDL_ADDON_DLLAPI bool LuaModelWriteLocalFrameHeaderEntries(const char *header_file_name, const std::vector< LocalFrame > &local_frame_set, bool append)
RBDL_ADDON_DLLAPI bool LuaModelReadFromFile(const char *filename, Model *upd_model, bool verbose=false)
Reads a model from a Lua file.
RBDL_ADDON_DLLAPI bool LuaModelReadPoints(const char *filename, const Model *model, std::vector< Point > &upd_point_set, bool verbose=false)
RBDL_ADDON_DLLAPI bool LuaModelGetConstraintSetPhases(const char *filename, const std::vector< std::string > &constraint_set_names, std::vector< unsigned int > &constraint_set_phases)