Namespaces | Functions
pinocchio::mjcf Namespace Reference

Namespaces

 details
 

Functions

template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
GeometryModelbuildGeom (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. More...
 
template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
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 given as reference argument. More...
 
template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
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. More...
 
template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
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 given as reference argument. More...
 
template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
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. More...
 

Function Documentation

◆ buildGeom()

template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
GeometryModel& pinocchio::mjcf::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.

Parameters
[in]modelThe model of the robot, built with mjcf::buildModel
[in]filenameThe mjcf complete (absolute) file path
[in]typeThe type of objects that must be loaded (must be VISUAL or COLLISION)
[in]mesh_loaderobject used to load meshes: hpp::fcl::MeshLoader [default] or hpp::fcl::CachedMeshLoader.
[out]geom_modelReference where to put the parsed information.
Returns
Returns the reference on geom model for convenience.
Warning
If hpp-fcl has not been found during compilation, COLLISION objects can not be loaded

◆ buildModel() [1/2]

template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
ModelTpl<Scalar, Options, JointCollectionTpl>& pinocchio::mjcf::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 given as reference argument.

Parameters
[in]filenameThe MJCF complete file path.
[in]rootJointThe joint at the root of the model tree.
[in]verbosePrint parsing info.
[out]modelReference model where to put the parsed information.
Returns
Return the reference on argument model for convenience.

◆ buildModel() [2/2]

template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
ModelTpl<Scalar, Options, JointCollectionTpl>& pinocchio::mjcf::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.

Parameters
[in]filenameThe MJCF complete file path.
[in]verbosePrint parsing info.
[out]modelReference model where to put the parsed information.
Returns
Return the reference on argument model for convenience.

◆ buildModelFromXML() [1/2]

template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
ModelTpl<Scalar, Options, JointCollectionTpl>& pinocchio::mjcf::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 given as reference argument.

Parameters
[in]xmlStreamxml stream containing MJCF model
[in]rootJointThe joint at the root of the model tree.
[in]verbosePrint parsing info.
[out]modelReference model where to put the parsed information.
Returns
Return the reference on argument model for convenience.

◆ buildModelFromXML() [2/2]

template<typename Scalar , int Options, template< typename, int > class JointCollectionTpl>
ModelTpl<Scalar, Options, JointCollectionTpl>& pinocchio::mjcf::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.

Parameters
[in]xmlStreamThe xml stream containing the MJCF Model.
[in]verbosePrint parsing info.
[out]modelReference model where to put the parsed information.
Returns
Return the reference on argument model for convenience.


pinocchio
Author(s):
autogenerated on Sat Jun 22 2024 02:41:53