5 #include "pinocchio/parsers/urdf.hpp" 8 #include <boost/python.hpp> 17 #ifdef PINOCCHIO_WITH_URDFDOM 19 Model buildModelFromUrdf(
const std::string & filename)
26 Model & buildModelFromUrdf(
const std::string & filename,
32 Model buildModelFromUrdf(
const std::string & filename,
40 Model & buildModelFromUrdf(
const std::string & filename,
82 #ifdef PINOCCHIO_WITH_URDFDOM 84 bp::def(
"buildModelFromUrdf",
85 static_cast <
Model (*) (
const std::string &,
const JointModel &)> (pinocchio::python::buildModelFromUrdf),
86 bp::args(
"urdf_filename",
"root_joint"),
87 "Parse the URDF file given in input and return a pinocchio Model starting with the given root joint." 90 bp::def(
"buildModelFromUrdf",
91 static_cast <
Model (*) (
const std::string &)> (pinocchio::python::buildModelFromUrdf),
92 bp::args(
"urdf_filename"),
93 "Parse the URDF file given in input and return a pinocchio Model." 96 bp::def(
"buildModelFromUrdf",
97 static_cast <
Model & (*) (
const std::string &,
Model &)> (pinocchio::python::buildModelFromUrdf),
98 bp::args(
"urdf_filename",
"model"),
99 "Append to a given model a URDF structure given by its filename.",
100 bp::return_internal_reference<2>()
103 bp::def(
"buildModelFromUrdf",
104 static_cast <
Model & (*) (
const std::string &,
const JointModel &,
Model &)> (pinocchio::python::buildModelFromUrdf),
105 bp::args(
"urdf_filename",
"root_joint",
"model"),
106 "Append to a given model a URDF structure given by its filename and the root joint.\n" 107 "Remark: In the URDF format, a joint of type fixed can be defined. For efficiency reasons," 108 "it is treated as operational frame and not as a joint of the model.",
109 bp::return_internal_reference<3>()
112 bp::def(
"buildModelFromXML",
114 bp::args(
"urdf_xml_stream",
"root_joint"),
115 "Parse the URDF XML stream given in input and return a pinocchio Model starting with the given root joint." 118 bp::def(
"buildModelFromXML",
120 bp::args(
"urdf_xml_stream",
"root_joint",
"model"),
121 "Parse the URDF XML stream given in input and append it to the input model with the given interfacing joint.",
122 bp::return_internal_reference<3>()
125 bp::def(
"buildModelFromXML",
127 bp::args(
"urdf_xml_stream"),
128 "Parse the URDF XML stream given in input and return a pinocchio Model." 131 bp::def(
"buildModelFromXML",
133 bp::args(
"urdf_xml_stream",
"model"),
134 "Parse the URDF XML stream given in input and append it to the input model.",
135 bp::return_internal_reference<2>()
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 URDF file with a particular joint as root of the model tree inside the model g...
Main pinocchio namespace.
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModelFromXML(const std::string &xml_stream, 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...
JointModelTpl< double > JointModel
JointCollectionTpl & model