parsers/mjcf.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2024 INRIA CNRS
3 //
4 
5 #ifndef __pinocchio_parsers_mjcf_hpp__
6 #define __pinocchio_parsers_mjcf_hpp__
7 
10 
11 namespace pinocchio
12 {
13  namespace mjcf
14  {
15 
26  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
27  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
28  const std::string & xmlStream,
30  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
31  const bool verbose = false);
32 
43  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
44  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
45  const std::string & filename,
47  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
48  const bool verbose = false);
49 
58  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
59  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
60  const std::string & xmlStream,
61  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
62  const bool verbose = false);
63 
72  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
73  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
74  const std::string & filename,
75  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
76  const bool verbose = false);
77 
96  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
97  GeometryModel & buildGeom(
98  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
99  const std::string & filename,
100  const GeometryType type,
101  GeometryModel & geom_model,
102  ::hpp::fcl::MeshLoaderPtr mesh_loader = ::hpp::fcl::MeshLoaderPtr());
103 
104  } // namespace mjcf
105 } // namespace pinocchio
106 
107 #include "pinocchio/parsers/mjcf/model.hxx"
108 #include "pinocchio/parsers/mjcf/geometry.hxx"
109 
110 #endif // ifndef __pinocchio_parsers_mjcf_hpp__
pinocchio::mjcf::buildModelFromXML
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModelFromXML(const std::string &xmlStream, const typename ModelTpl< Scalar, Options, JointCollectionTpl >::JointModel &rootJoint, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false)
Build the model from an XML stream with a particular joint as root of the model tree inside the model...
pinocchio::mjcf::buildModel
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModel(const std::string &filename, const typename ModelTpl< Scalar, Options, JointCollectionTpl >::JointModel &rootJoint, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false)
Build the model from a MJCF file with a particular joint as root of the model tree inside the model g...
model.hpp
simulation-pendulum.type
type
Definition: simulation-pendulum.py:18
urdf.hpp
pinocchio::mjcf::buildGeom
GeometryModel & buildGeom(ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const GeometryType type, GeometryModel &geom_model, ::hpp::fcl::MeshLoaderPtr mesh_loader=::hpp::fcl::MeshLoaderPtr())
Build The GeometryModel from a Mjcf file.
append-urdf-model-with-another-model.geom_model
geom_model
Definition: append-urdf-model-with-another-model.py:26
pinocchio::GeometryType
GeometryType
Definition: multibody/geometry-object.hpp:24
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1116
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27
pinocchio::ModelTpl::JointModel
JointModelTpl< Scalar, Options, JointCollectionTpl > JointModel
Definition: multibody/model.hpp:73


pinocchio
Author(s):
autogenerated on Tue Jun 25 2024 02:42:40