octree.cc
Go to the documentation of this file.
1 
2 #include "fcl.hh"
3 
4 #include <hpp/fcl/fwd.hh>
5 #include <hpp/fcl/octree.h>
6 
7 #ifdef HPP_FCL_HAS_DOXYGEN_AUTODOC
8 #include "doxygen_autodoc/functions.h"
9 #endif
10 
11 void exposeOctree() {
12  using namespace hpp::fcl;
13  namespace bp = boost::python;
14  namespace dv = doxygen::visitor;
15 
16  bp::class_<OcTree, bp::bases<CollisionGeometry>, shared_ptr<OcTree> >(
17  "OcTree", doxygen::class_doc<OcTree>(), bp::no_init)
18  .def(dv::init<OcTree, FCL_REAL>())
19  .def(dv::member_func("getTreeDepth", &OcTree::getTreeDepth))
20  .def(dv::member_func("getOccupancyThres", &OcTree::getOccupancyThres))
21  .def(dv::member_func("getFreeThres", &OcTree::getFreeThres))
22  .def(dv::member_func("getDefaultOccupancy", &OcTree::getDefaultOccupancy))
23  .def(dv::member_func("setCellDefaultOccupancy",
25  .def(dv::member_func("setOccupancyThres", &OcTree::setOccupancyThres))
26  .def(dv::member_func("setFreeThres", &OcTree::setFreeThres))
27  .def(dv::member_func("getRootBV", &OcTree::getRootBV));
28 
29  doxygen::def("makeOctree", &makeOctree);
30 }
FCL_REAL getOccupancyThres() const
the threshold used to decide whether one node is occupied, this is NOT the octree occupied_thresold ...
Definition: octree.h:165
void exposeOctree()
Definition: octree.cc:11
FCL_REAL getDefaultOccupancy() const
Definition: octree.h:171
AABB getRootBV() const
get the bounding volume for the root
Definition: octree.h:107
unsigned int getTreeDepth() const
Returns the depth of octree.
Definition: octree.h:115
HPP_FCL_DLLAPI OcTreePtr_t makeOctree(const Eigen::Matrix< FCL_REAL, Eigen::Dynamic, 3 > &point_cloud, const FCL_REAL resolution)
Build an OcTree from a point cloud and a given resolution.
Definition: src/octree.cpp:185
FCL_REAL getFreeThres() const
the threshold used to decide whether one node is free, this is NOT the octree free_threshold ...
Definition: octree.h:169
void def(const char *name, Func func)
void setOccupancyThres(FCL_REAL d)
Definition: octree.h:175
void setCellDefaultOccupancy(FCL_REAL d)
Definition: octree.h:173
member_func_impl< function_type > member_func(const char *name, const function_type &function)
void setFreeThres(FCL_REAL d)
Definition: octree.h:177


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:01