5 #include "pinocchio/parsers/urdf.hpp" 8 #include <boost/python.hpp> 17 #ifdef PINOCCHIO_WITH_URDFDOM 21 const std::string & filename,
24 GeometryModel geometry_model;
27 return geometry_model;
32 const std::string & filename,
34 GeometryModel & geometry_model)
37 return geometry_model;
42 const std::string & filename,
44 const std::vector<std::string> & package_dirs)
46 GeometryModel geometry_model;
49 return geometry_model;
54 const std::string & filename,
56 GeometryModel & geometry_model,
57 const std::vector<std::string> & package_dirs)
61 return geometry_model;
66 const std::string & filename,
68 const std::string & package_dir)
70 GeometryModel geometry_model;
73 return geometry_model;
78 const std::string & filename,
80 GeometryModel & geometry_model,
81 const std::string & package_dir)
85 return geometry_model;
88 #ifdef PINOCCHIO_WITH_HPP_FCL 91 const std::string & filename,
93 const fcl::MeshLoaderPtr & meshLoader)
95 std::vector<std::string> hints;
96 GeometryModel geometry_model;
99 return geometry_model;
104 const std::string & filename,
106 GeometryModel & geometry_model,
107 const fcl::MeshLoaderPtr & meshLoader)
109 std::vector<std::string> hints;
112 return geometry_model;
117 const std::string & filename,
119 const std::vector<std::string> & package_dirs,
120 const fcl::MeshLoaderPtr & meshLoader)
122 GeometryModel geometry_model;
125 return geometry_model;
130 const std::string & filename,
132 GeometryModel & geometry_model,
133 const std::vector<std::string> & package_dirs,
134 const fcl::MeshLoaderPtr & meshLoader)
138 return geometry_model;
143 const std::string & filename,
145 const std::string & package_dir,
146 const fcl::MeshLoaderPtr & meshLoader)
148 GeometryModel geometry_model;
151 return geometry_model;
156 const std::string & filename,
158 GeometryModel & geometry_model,
159 const std::string & package_dir,
160 const fcl::MeshLoaderPtr & meshLoader)
164 return geometry_model;
167 #endif // #ifdef PINOCCHIO_WITH_HPP_FCL 173 #ifdef PINOCCHIO_WITH_URDFDOM 175 bp::def(
"buildGeomFromUrdf",
177 bp::args(
"model",
"urdf_filename",
"geom_type",
"package_dirs"),
178 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 179 "return a GeometryModel containing either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n" 181 "\tmodel: model of the robot\n" 182 "\turdf_filename: path to the URDF file containing the model of the robot\n" 183 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 184 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the robot\n" 187 bp::def(
"buildGeomFromUrdf",
189 bp::args(
"model",
"urdf_filename",
"geom_type",
"geom_model",
"package_dirs"),
190 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 191 "and store either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL) in the geom_model given as input.\n" 193 "\tmodel: model of the robot\n" 194 "\turdf_filename: path to the URDF file containing the model of the robot\n" 195 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 196 "\tgeom_model: reference where to store the parsed information\n" 197 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the robot\n",
198 bp::return_internal_reference<4>()
201 bp::def(
"buildGeomFromUrdf",
203 bp::args(
"model",
"urdf_filename",
"geom_type"),
204 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 205 "return a GeometryModel containing either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n" 207 "\tmodel: model of the robot\n" 208 "\turdf_filename: path to the URDF file containing the model of the robot\n" 209 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 211 "This function does not take any hint concerning the location of the meshes of the robot." 214 bp::def(
"buildGeomFromUrdf",
216 bp::args(
"model",
"urdf_filename",
"geom_type",
"geom_model"),
217 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 218 "and store either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL) in the geom_model given as input.\n" 220 "\tmodel: model of the robot\n" 221 "\turdf_filename: path to the URDF file containing the model of the robot\n" 222 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 223 "\tgeom_model: reference where to store the parsed information\n" 225 "This function does not take any hint concerning the location of the meshes of the robot.",
226 bp::return_internal_reference<4>()
229 bp::def(
"buildGeomFromUrdf",
231 bp::args(
"model",
"urdf_filename",
"geom_type",
"package_dir" ),
232 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 233 "return a GeometryModel containing either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n" 235 "\tmodel: model of the robot\n" 236 "\turdf_filename: path to the URDF file containing the model of the robot\n" 237 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 238 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n" 241 bp::def(
"buildGeomFromUrdf",
243 bp::args(
"model",
"urdf_filename",
"geom_type",
"geom_model",
"package_dir"),
244 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 245 "and store either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL) in the geom_model given as input.\n" 247 "\tmodel: model of the robot\n" 248 "\turdf_filename: path to the URDF file containing the model of the robot\n" 249 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 250 "\tgeom_model: reference where to store the parsed information\n" 251 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n",
252 bp::return_internal_reference<4>()
255 #ifdef PINOCCHIO_WITH_HPP_FCL 257 bp::def(
"buildGeomFromUrdf",
259 bp::args(
"model",
"urdf_filename",
"geom_type",
"package_dirs",
"mesh_loader"),
260 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 261 "return a GeometryModel containing either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n" 263 "\tmodel: model of the robot\n" 264 "\turdf_filename: path to the URDF file containing the model of the robot\n" 265 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 266 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the robot\n" 267 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries)." 270 bp::def(
"buildGeomFromUrdf",
272 bp::args(
"model",
"urdf_filename",
"geom_type",
"geom_model",
"package_dirs",
"mesh_loader"),
273 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 274 "and store either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL) in the geom_model given as input.\n" 276 "\tmodel: model of the robot\n" 277 "\turdf_filename: path to the URDF file containing the model of the robot\n" 278 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 279 "\tgeom_model: reference where to store the parsed information\n" 280 "\tpackage_dirs: vector of paths pointing to the folders containing the model of the robot\n" 281 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).",
282 bp::return_internal_reference<4>()
285 bp::def(
"buildGeomFromUrdf",
287 bp::args(
"model",
"urdf_filename",
"geom_type",
"package_dir",
"mesh_loader"),
288 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 289 "return a GeometryModel containing either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n" 291 "\tmodel: model of the robot\n" 292 "\turdf_filename: path to the URDF file containing the model of the robot\n" 293 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 294 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n" 295 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries)." 298 bp::def(
"buildGeomFromUrdf",
300 bp::args(
"model",
"urdf_filename",
"geom_type",
"geom_model",
"package_dir",
"mesh_loader"),
301 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 302 "and store either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL) in the geom_model given as input.\n" 304 "\tmodel: model of the robot\n" 305 "\turdf_filename: path to the URDF file containing the model of the robot\n" 306 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 307 "\tgeom_model: reference where to store the parsed information\n" 308 "\tpackage_dir: path pointing to the folder containing the meshes of the robot\n" 309 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).",
310 bp::return_internal_reference<4>()
313 bp::def(
"buildGeomFromUrdf",
315 bp::args(
"model",
"urdf_filename",
"geom_type",
"mesh_loader"),
316 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 317 "return a GeometryModel containing either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL).\n" 319 "\tmodel: model of the robot\n" 320 "\turdf_filename: path to the URDF file containing the model of the robot\n" 321 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 322 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).\n" 324 "This function does not take any hint concerning the location of the meshes of the robot." 327 bp::def(
"buildGeomFromUrdf",
329 bp::args(
"model",
"urdf_filename",
"geom_type",
"geom_model",
"mesh_loader"),
330 "Parse the URDF file given as input looking for the geometry of the given input model and\n" 331 "and store either the collision geometries (GeometryType.COLLISION) or the visual geometries (GeometryType.VISUAL) in the geom_model given as input.\n" 333 "\tmodel: model of the robot\n" 334 "\turdf_filename: path to the URDF file containing the model of the robot\n" 335 "\tgeom_type: type of geometry to extract from the URDF file (either the VISUAL for display or the COLLISION for collision detection).\n" 336 "\tgeom_model: reference where to store the parsed information\n" 337 "\tmesh_loader: an hpp-fcl mesh loader (to load only once the related geometries).\n" 339 "This function does not take any hint concerning the location of the meshes of the robot.",
340 bp::return_internal_reference<4>()
343 #endif // #ifdef PINOCCHIO_WITH_HPP_FCL 344 #endif // #ifdef PINOCCHIO_WITH_URDFDOM
def buildGeomFromUrdf(model, filename, args)
GeometryModel & buildGeom(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const GeometryType type, GeometryModel &geom_model, const std::vector< std::string > &package_paths=std::vector< std::string >(),::hpp::fcl::MeshLoaderPtr mesh_loader=::hpp::fcl::MeshLoaderPtr())
Build The GeometryModel from a URDF file. Search for meshes in the directories specified by the user ...
Main pinocchio namespace.
JointCollectionTpl & model
void exposeURDFGeometry()