5 #ifdef PINOCCHIO_WITH_SDFORMAT
10 #include <boost/python.hpp>
19 #ifdef PINOCCHIO_WITH_SDFORMAT
24 GeometryModel geometry_model;
25 const std::string & rootLinkName =
"";
26 const std::string & packageDir =
"";
28 return geometry_model;
31 GeometryModel buildGeomFromSdf(
33 const std::string & filename,
35 const std::string & rootLinkName)
37 GeometryModel geometry_model;
38 const std::string & packageDir =
"";
40 return geometry_model;
43 GeometryModel & buildGeomFromSdf(
45 const std::string & filename,
47 GeometryModel & geometry_model,
48 const std::string & rootLinkName)
51 return geometry_model;
54 GeometryModel buildGeomFromSdf(
56 const std::string & filename,
58 const std::string & rootLinkName,
59 const std::string & packageDir)
61 GeometryModel geometry_model;
62 const std::vector<std::string> dirs(1, packageDir);
65 return geometry_model;
68 GeometryModel buildGeomFromSdf(
70 const std::string & filename,
72 const std::string & rootLinkName,
75 GeometryModel geometry_model;
77 return geometry_model;
80 GeometryModel & buildGeomFromSdf(
82 const std::string & filename,
84 GeometryModel & geometry_model,
85 const std::string & rootLinkName,
89 return geometry_model;
92 GeometryModel & buildGeomFromSdf(
94 const std::string & filename,
96 GeometryModel & geometry_model,
97 const std::string & rootLinkName,
101 return geometry_model;
104 GeometryModel buildGeomFromSdf(
106 const std::string & filename,
108 const std::string & rootLinkName,
109 const hpp::fcl::MeshLoaderPtr & meshLoader)
111 std::vector<std::string> hints;
112 GeometryModel geometry_model;
114 model, filename,
type, geometry_model, rootLinkName, hints, meshLoader);
115 return geometry_model;
118 GeometryModel & buildGeomFromSdf(
120 const std::string & filename,
122 GeometryModel & geometry_model,
123 const std::string & rootLinkName,
124 const hpp::fcl::MeshLoaderPtr & meshLoader)
126 std::vector<std::string> hints;
128 model, filename,
type, geometry_model, rootLinkName, hints, meshLoader);
129 return geometry_model;
132 GeometryModel buildGeomFromSdf(
134 const std::string & filename,
136 const std::string & rootLinkName,
138 const hpp::fcl::MeshLoaderPtr & meshLoader)
140 GeometryModel geometry_model;
143 return geometry_model;
146 GeometryModel & buildGeomFromSdf(
148 const std::string & filename,
150 GeometryModel & geometry_model,
151 const std::string & rootLinkName,
153 const hpp::fcl::MeshLoaderPtr & meshLoader)
157 return geometry_model;
160 GeometryModel buildGeomFromSdf(
162 const std::string & filename,
164 const std::string & rootLinkName,
166 const hpp::fcl::MeshLoaderPtr & meshLoader)
168 GeometryModel geometry_model;
171 return geometry_model;
174 GeometryModel & buildGeomFromSdf(
176 const std::string & filename,
178 GeometryModel & geometry_model,
179 const std::string & rootLinkName,
181 const hpp::fcl::MeshLoaderPtr & meshLoader)
185 return geometry_model;
188 #endif // #ifdef PINOCCHIO_WITH_SDFORMAT
192 #ifdef PINOCCHIO_WITH_SDFORMAT
197 pinocchio::python::buildGeomFromSdf),
198 bp::args(
"model",
"sdf_filename",
"geom_type"),
199 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
200 "return a GeometryModel containing either the collision geometries "
201 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
203 "\tmodel: model of the robot\n"
204 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
205 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
206 "or the COLLISION for collision detection).\n");
212 const std::string &)
>(pinocchio::python::buildGeomFromSdf),
213 bp::args(
"model",
"sdf_filename",
"geom_type",
"root_link_name",
"package_dir"),
214 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
215 "return a GeometryModel containing either the collision geometries "
216 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
218 "\tmodel: model of the robot\n"
219 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
220 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
221 "or the COLLISION for collision detection).\n"
222 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n");
228 const std::vector<std::string> &)
>(pinocchio::python::buildGeomFromSdf),
229 bp::args(
"model",
"sdf_filename",
"geom_type",
"root_link_name",
"package_dirs"),
230 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
231 "return a GeometryModel containing either the collision geometries "
232 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
234 "\tmodel: model of the robot\n"
235 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
236 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
237 "or the COLLISION for collision detection).\n"
238 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the "
245 const std::vector<std::string> &)
>(
246 pinocchio::python::buildGeomFromSdf),
248 "model",
"sdf_filename",
"geom_type",
"geom_model",
"root_link_name",
"package_dirs"),
249 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
250 "and store either the collision geometries (GeometryType.COLLISION) or the visual "
251 "geometries (GeometryType.VISUAL) in the geom_model given as input.\n"
253 "\tmodel: model of the robot\n"
254 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
255 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
256 "or the COLLISION for collision detection).\n"
257 "\tgeom_model: reference where to store the parsed information\n"
258 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the "
260 bp::return_internal_reference<4>());
266 pinocchio::python::buildGeomFromSdf),
267 bp::args(
"model",
"sdf_filename",
"geom_type",
"root_link_name"),
268 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
269 "return a GeometryModel containing either the collision geometries "
270 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
272 "\tmodel: model of the robot\n"
273 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
274 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
275 "or the COLLISION for collision detection).\n"
277 "This function does not take any hint concerning the location of the meshes of the robot.");
283 pinocchio::python::buildGeomFromSdf),
284 bp::args(
"model",
"sdf_filename",
"geom_type",
"geom_model",
"root_link_name"),
285 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
286 "and store either the collision geometries (GeometryType.COLLISION) or the visual "
287 "geometries (GeometryType.VISUAL) in the geom_model given as input.\n"
289 "\tmodel: model of the robot\n"
290 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
291 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
292 "or the COLLISION for collision detection).\n"
293 "\tgeom_model: reference where to store the parsed information\n"
295 "This function does not take any hint concerning the location of the meshes of the robot.",
296 bp::return_internal_reference<4>());
302 pinocchio::python::buildGeomFromSdf),
304 "model",
"sdf_filename",
"geom_type",
"geom_model",
"root_link_name",
"package_dir"),
305 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
306 "and store either the collision geometries (GeometryType.COLLISION) or the visual "
307 "geometries (GeometryType.VISUAL) in the geom_model given as input.\n"
309 "\tmodel: model of the robot\n"
310 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
311 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
312 "or the COLLISION for collision detection).\n"
313 "\tgeom_model: reference where to store the parsed information\n"
314 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n",
315 bp::return_internal_reference<4>());
321 const std::vector<std::string> &,
const hpp::fcl::MeshLoaderPtr &)
>(
322 pinocchio::python::buildGeomFromSdf),
324 "model",
"sdf_filename",
"geom_type",
"root_link_name",
"package_dirs",
"mesh_loader"),
325 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
326 "return a GeometryModel containing either the collision geometries "
327 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
329 "\tmodel: model of the robot\n"
330 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
331 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
332 "or the COLLISION for collision detection).\n"
333 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the "
335 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).");
341 const std::vector<std::string> &,
342 const hpp::fcl::MeshLoaderPtr &)
>(
343 pinocchio::python::buildGeomFromSdf),
345 "model",
"sdf_filename",
"geom_type",
"geom_model",
"root_link_name",
"package_dirs",
347 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
348 "and store either the collision geometries (GeometryType.COLLISION) or the visual "
349 "geometries (GeometryType.VISUAL) in the geom_model given as input.\n"
351 "\tmodel: model of the robot\n"
352 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
353 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
354 "or the COLLISION for collision detection).\n"
355 "\tgeom_model: reference where to store the parsed information\n"
356 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the "
358 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).",
359 bp::return_internal_reference<4>());
365 const std::string &,
const hpp::fcl::MeshLoaderPtr &)
>(
366 pinocchio::python::buildGeomFromSdf),
368 "model",
"sdf_filename",
"geom_type",
"root_link_name",
"package_dir",
"mesh_loader"),
369 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
370 "return a GeometryModel containing either the collision geometries "
371 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
373 "\tmodel: model of the robot\n"
374 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
375 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
376 "or the COLLISION for collision detection).\n"
377 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n"
378 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).");
384 const hpp::fcl::MeshLoaderPtr &)
>(
385 pinocchio::python::buildGeomFromSdf),
387 "model",
"sdf_filename",
"geom_type",
"geom_model",
"root_link_name",
"package_dir",
389 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
390 "and store either the collision geometries (GeometryType.COLLISION) or the visual "
391 "geometries (GeometryType.VISUAL) in the geom_model given as input.\n"
393 "\tmodel: model of the robot\n"
394 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
395 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
396 "or the COLLISION for collision detection).\n"
397 "\tgeom_model: reference where to store the parsed information\n"
398 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n"
399 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).",
400 bp::return_internal_reference<4>());
406 const hpp::fcl::MeshLoaderPtr &)
>(pinocchio::python::buildGeomFromSdf),
407 bp::args(
"model",
"sdf_filename",
"geom_type",
"root_link_name",
"mesh_loader"),
408 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
409 "return a GeometryModel containing either the collision geometries "
410 "(GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n"
412 "\tmodel: model of the robot\n"
413 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
414 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
415 "or the COLLISION for collision detection).\n"
416 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).\n"
418 "This function does not take any hint concerning the location of the meshes of the robot.");
424 const hpp::fcl::MeshLoaderPtr &)
>(
425 pinocchio::python::buildGeomFromSdf),
427 "model",
"sdf_filename",
"geom_type",
"geom_model",
"root_link_name",
"mesh_loader"),
428 "Parse the SDF file given as input looking for the geometry of the given input model and\n"
429 "and store either the collision geometries (GeometryType.COLLISION) or the visual "
430 "geometries (GeometryType.VISUAL) in the geom_model given as input.\n"
432 "\tmodel: model of the robot\n"
433 "\tsdf_filename: path to the SDF file containing the model of the robot\n"
434 "\tgeom_type: type of geometry to extract from the SDF file (either the VISUAL for display "
435 "or the COLLISION for collision detection).\n"
436 "\tgeom_model: reference where to store the parsed information\n"
437 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).\n"
439 "This function does not take any hint concerning the location of the meshes of the robot.",
440 bp::return_internal_reference<4>());