5 #ifdef PINOCCHIO_WITH_URDFDOM
12 #include <boost/python.hpp>
21 #ifdef PINOCCHIO_WITH_URDFDOM
23 Model buildModelFromUrdf(
const bp::object & filename)
35 Model buildModelFromUrdf(
const bp::object & filename,
const JointModel & root_joint)
42 Model buildModelFromUrdf(
43 const bp::object & filename,
45 const std::string & root_joint_name)
58 Model & buildModelFromUrdf(
59 const bp::object & filename,
61 const std::string & root_joint_name,
75 const std::string & xml_stream,
77 const std::string & root_joint_name)
92 const std::string & xml_stream,
94 const std::string & root_joint_name,
119 #ifdef PINOCCHIO_WITH_URDFDOM
122 "buildModelFromUrdf",
124 pinocchio::python::buildModelFromUrdf),
125 bp::args(
"urdf_filename",
"root_joint"),
126 "Parse the URDF file given in input and return a pinocchio Model starting with the "
127 "given root joint.");
130 "buildModelFromUrdf",
131 static_cast<Model (*)(
const bp::object &,
const JointModel &,
const std::string &)
>(
132 pinocchio::python::buildModelFromUrdf),
133 bp::args(
"urdf_filename",
"root_joint",
"root_joint_name"),
134 "Parse the URDF file given in input and return a pinocchio Model starting with the "
135 "given root joint with its specified name.");
138 "buildModelFromUrdf",
139 static_cast<Model (*)(
const bp::object &)
>(pinocchio::python::buildModelFromUrdf),
140 bp::args(
"urdf_filename"),
141 "Parse the URDF file given in input and return a pinocchio Model.");
144 "buildModelFromUrdf",
145 static_cast<Model & (*)(
const bp::object &,
Model &)
>(
146 pinocchio::python::buildModelFromUrdf),
147 bp::args(
"urdf_filename",
"model"),
148 "Append to a given model a URDF structure given by its filename.",
149 bp::return_internal_reference<2>());
152 "buildModelFromUrdf",
154 pinocchio::python::buildModelFromUrdf),
155 bp::args(
"urdf_filename",
"root_joint",
"model"),
156 "Append to a given model a URDF structure given by its filename and the root joint.\n"
157 "Remark: In the URDF format, a joint of type fixed can be defined. For efficiency reasons,"
158 "it is treated as operational frame and not as a joint of the model.",
159 bp::return_internal_reference<3>());
162 "buildModelFromUrdf",
163 static_cast<Model & (*)(
const bp::object &,
const JointModel &,
const std::string &,
164 Model &)
>(pinocchio::python::buildModelFromUrdf),
165 bp::args(
"urdf_filename",
"root_joint",
"root_joint_name",
"model"),
166 "Append to a given model a URDF structure given by its filename and the root joint with "
167 "its specified name.\n"
168 "Remark: In the URDF format, a joint of type fixed can be defined. For efficiency reasons,"
169 "it is treated as operational frame and not as a joint of the model.",
170 bp::return_internal_reference<3>());
176 bp::args(
"urdf_xml_stream",
"root_joint"),
177 "Parse the URDF XML stream given in input and return a pinocchio Model starting with "
178 "the given root joint.");
182 static_cast<Model (*)(
const std::string &,
const JointModel &,
const std::string &)
>(
184 bp::args(
"urdf_xml_stream",
"root_joint",
"root_joint_name"),
185 "Parse the URDF XML stream given in input and return a pinocchio Model starting with "
186 "the given root joint with its specified name.");
192 bp::args(
"urdf_xml_stream",
"root_joint",
"model"),
193 "Parse the URDF XML stream given in input and append it to the input model with the "
194 "given interfacing joint.",
195 bp::return_internal_reference<3>());
199 static_cast<Model & (*)(
const std::string &,
const JointModel &,
const std::string &,
201 bp::args(
"urdf_xml_stream",
"root_joint",
"root_joint_name",
"model"),
202 "Parse the URDF XML stream given in input and append it to the input model with the "
203 "given interfacing joint with its specified name.",
204 bp::return_internal_reference<3>());
209 bp::args(
"urdf_xml_stream"),
210 "Parse the URDF XML stream given in input and return a pinocchio Model.");
214 static_cast<Model & (*)(
const std::string &,
Model &)
>(
216 bp::args(
"urdf_xml_stream",
"model"),
217 "Parse the URDF XML stream given in input and append it to the input model.",
218 bp::return_internal_reference<2>());