Go to the documentation of this file.
9 #ifdef COAL_HAS_DOXYGEN_AUTODOC
10 #include "doxygen_autodoc/functions.h"
11 #include "doxygen_autodoc/coal/octree.h"
15 #if PY_MAJOR_VERSION == 2
17 PyBuffer_FromMemory((
char*)bytes.data(), Py_ssize_t(bytes.size()));
18 return bp::object(bp::handle<>(py_buf));
20 PyObject* py_buf = PyMemoryView_FromMemory(
21 (
char*)bytes.data(), Py_ssize_t(bytes.size()), PyBUF_READ);
22 return bp::object(bp::handle<>(PyBytes_FromObject(py_buf)));
27 std::vector<uint8_t> bytes =
self.tobytes();
36 bp::class_<OcTree, bp::bases<CollisionGeometry>, shared_ptr<OcTree> >(
37 "OcTree", doxygen::class_doc<OcTree>(), bp::no_init)
38 .
def(dv::init<OcTree, CoalScalar>())
40 bp::return_value_policy<bp::manage_new_object>())
56 eigenpy::enableEigenPySpecific<Vec6s>();
std::vector< Vec6s > toBoxes() const
transform the octree into a bunch of boxes; uncertainty information is kept in the boxes....
AABB getRootBV() const
get the bounding volume for the root
unsigned long size() const
Returns the size of the octree.
std::vector< uint8_t > tobytes() const
Returns a byte description of *this.
COAL_DLLAPI OcTreePtr_t makeOctree(const Eigen::Matrix< CoalScalar, Eigen::Dynamic, 3 > &point_cloud, const CoalScalar resolution)
Build an OcTree from a point cloud and a given resolution.
void def(const char *name, Func func)
CoalScalar getResolution() const
Returns the resolution of the octree.
CoalScalar getOccupancyThres() const
the threshold used to decide whether one node is occupied, this is NOT the octree occupied_thresold
member_func_impl< function_type > member_func(const char *name, const function_type &function)
void setFreeThres(CoalScalar d)
void setOccupancyThres(CoalScalar d)
void setCellDefaultOccupancy(CoalScalar d)
bp::object toPyBytes(std::vector< uint8_t > &bytes)
Octree is one type of collision geometry which can encode uncertainty information in the sensor data.
CoalScalar getDefaultOccupancy() const
OcTree * clone() const
Clone *this into a new Octree.
bp::object tobytes(const coal::OcTree &self)
CoalScalar getFreeThres() const
the threshold used to decide whether one node is free, this is NOT the octree free_threshold
unsigned int getTreeDepth() const
Returns the depth of the octree.
const char * member_func_doc(FuncPtr)
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58