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 
13 
14 namespace pinocchio
15 {
16  namespace mjcf
17  {
18 
27  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
28  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
29  const std::string & filename,
30  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
31  const bool verbose = false);
32 
41  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
42  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
43  const std::string & xmlStream,
44  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
45  const bool verbose = false);
46 
47  // TODO: update description, buildModel with contact model
48  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
49  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
50  const std::string & filename,
51  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
53  const bool verbose = false);
54 
55  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
56  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
57  const std::string & xmlStream,
58  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
60  const bool verbose = false);
61 
72  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
73  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
74  const std::string & filename,
76  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
77  const bool verbose = false);
78 
79  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
80  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
81  const std::string & xmlStream,
83  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
84  const bool verbose = false);
85 
97  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
98  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
99  const std::string & filename,
101  const std::string & rootJointName,
102  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
103  const bool verbose = false);
104 
105  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
106  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
107  const std::string & xmlStream,
109  const std::string & rootJointName,
110  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
111  const bool verbose = false);
112 
123  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
124  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
125  const std::string & filename,
127  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
129  const bool verbose = false);
130 
131  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
132  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
133  const std::string & xmlStream,
135  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
137  const bool verbose);
138 
150  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
151  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModel(
152  const std::string & filename,
154  const std::string & rootJointName,
155  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
157  const bool verbose = false);
158 
170  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
171  ModelTpl<Scalar, Options, JointCollectionTpl> & buildModelFromXML(
172  const std::string & xmlStream,
174  const std::string & rootJointName,
175  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
177  const bool verbose = false);
178 
197  template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
198  GeometryModel & buildGeom(
199  ModelTpl<Scalar, Options, JointCollectionTpl> & model,
200  const std::string & filename,
201  const GeometryType type,
202  GeometryModel & geom_model,
204 
205  } // namespace mjcf
206 } // namespace pinocchio
207 
208 #include "pinocchio/parsers/mjcf/model.hxx"
209 #include "pinocchio/parsers/mjcf/geometry.hxx"
210 
211 #endif // ifndef __pinocchio_parsers_mjcf_hpp__
pinocchio::mjcf::buildModelFromXML
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModelFromXML(const std::string &xmlStream, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false)
Build the model from a MJCF file with a fixed joint as root of the model tree.
common_symbols.type
type
Definition: common_symbols.py:35
model.hpp
hpp::fcl::MeshLoaderPtr
std::shared_ptr< MeshLoader > MeshLoaderPtr
Definition: meshloader-fwd.hpp:25
urdf.hpp
geometry.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.
PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR
#define PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(T)
Definition: container/aligned-vector.hpp:13
append-urdf-model-with-another-model.geom_model
geom_model
Definition: append-urdf-model-with-another-model.py:26
pinocchio::mjcf::buildModel
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModel(const std::string &filename, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false)
Build the model from a MJCF file with a fixed joint as root of the model tree.
pinocchio::GeometryType
GeometryType
Definition: multibody/geometry-object.hpp:24
pinocchio::RigidConstraintModel
RigidConstraintModelTpl< context::Scalar, context::Options > RigidConstraintModel
Definition: algorithm/fwd.hpp:24
contact-cholesky.contact_models
list contact_models
Definition: contact-cholesky.py:22
contact-info.hpp
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1082
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27
pinocchio::ModelTpl::JointModel
JointModelTpl< Scalar, Options, JointCollectionTpl > JointModel
Definition: multibody/model.hpp:72


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:11