Template Function pinocchio::urdf::buildModelFromXML(const std::string&, ModelTpl<Scalar, Options, JointCollectionTpl>&, const bool)

Function Documentation

template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
ModelTpl<Scalar, Options, JointCollectionTpl> &pinocchio::urdf::buildModelFromXML(const std::string &xml_stream, ModelTpl<Scalar, Options, JointCollectionTpl> &model, const bool verbose = false)

Build the model from an XML stream.

Note

urdfTree can be build from ::urdf::parseURDF or ::urdf::parseURDFFile

Parameters:
  • xml_stream[in] stream containing the URDF model.

  • verbose[in] Print parsing info.

  • model[out] Reference model where to put the parsed information.

Returns:

Return the reference on argument model for convenience.