Rigid Body Dynamics Library
RigidBodyDynamics::Addons Namespace Reference

Namespaces

 Geometry
 
 Muscle
 

Functions

RBDL_DLLAPI bool URDFReadFromFile (const char *filename, Model *model, bool floating_base, bool verbose=false)
 
RBDL_DLLAPI bool URDFReadFromString (const char *model_xml_string, Model *model, bool floating_base, bool verbose=false)
 
RBDL_DLLAPI bool LuaModelReadFromFile (const char *filename, Model *model, bool verbose=false)
 Reads a model from a Lua file. More...
 
RBDL_DLLAPI std::vector< std::string > LuaModelGetConstraintSetNames (const char *filename)
 Reads a model file and returns the names of all constraint sets. More...
 
RBDL_DLLAPI bool LuaModelReadFromFileWithConstraints (const char *filename, Model *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. More...
 
RBDL_DLLAPI bool LuaModelReadFromLuaState (lua_State *L, Model *model, bool verbose=false)
 Reads a model from a lua_State. More...
 

Function Documentation

◆ LuaModelGetConstraintSetNames()

RBDL_DLLAPI std::vector<std::string> RigidBodyDynamics::Addons::LuaModelGetConstraintSetNames ( const char *  filename)

Reads a model file and returns the names of all constraint sets.

◆ LuaModelReadFromFile()

RBDL_DLLAPI bool RigidBodyDynamics::Addons::LuaModelReadFromFile ( const char *  filename,
Model model,
bool  verbose = false 
)

Reads a model from a Lua file.

Parameters
filenamethe name of the Lua file.
modela pointer to the output Model structure.
verbosespecifies wether information on the model should be printed (default: true).
Returns
true if the model was read successfully.
Note
See Lua Models for information on how to define the Lua model.

◆ LuaModelReadFromFileWithConstraints()

RBDL_DLLAPI bool RigidBodyDynamics::Addons::LuaModelReadFromFileWithConstraints ( const char *  filename,
Model 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.

Parameters
filenamethe name of the Lua file.
modela pointer to the output Model structure.
constraint_setsreference to a std::vector of ConstraintSet structures in which to save the information read from the file.
constraint_set_namesreference to a std::vector of std::string specifying the names of the constraint sets to be read from the Lua file.
verbosespecifies wether information on the model should be printed (default: true).
Returns
true if the model and constraint sets were read successfully.
Note
constraint_sets and constraint_set_names are required to have the same size. See Lua Models for information on how to define the Lua model.

◆ LuaModelReadFromLuaState()

RBDL_DLLAPI bool RigidBodyDynamics::Addons::LuaModelReadFromLuaState ( lua_State *  L,
Model model,
bool  verbose = false 
)

Reads a model from a lua_State.

Parameters
La pointer to the lua_State.
modela pointer to the output Model structure.
verbosespecifies wether information on the model should be printed (default: true).
Returns
true if the model was read successfully.

◆ URDFReadFromFile()

RBDL_DLLAPI bool RigidBodyDynamics::Addons::URDFReadFromFile ( const char *  filename,
Model model,
bool  floating_base,
bool  verbose = false 
)

◆ URDFReadFromString()

RBDL_DLLAPI bool RigidBodyDynamics::Addons::URDFReadFromString ( const char *  model_xml_string,
Model model,
bool  floating_base,
bool  verbose = false 
)