Go to the documentation of this file.
20 #ifndef VOXEL_GRID__VOXELS_HPP_
21 #define VOXEL_GRID__VOXELS_HPP_
45 template<
typename Po
intT>
46 VOXEL_GRID_PUBLIC PointT
operator+(
const PointT & lhs,
const PointT & rhs)
60 template<
typename Po
intT>
114 template<
typename Po
intT>
143 template<
typename Po
intT>
171 #endif // VOXEL_GRID__VOXELS_HPP_
VOXEL_GRID_PUBLIC PointT operator*(const PointT &lhs, const float32_t rhs)
Default scalar multiplication operator for a point type for use with CentroidVoxel.
Definition: voxels.hpp:61
float32_t x
Definition: types.hpp:58
This file includes common type definition.
This file defines the core Voxel class.
This file defines the configuration class for the voxel grid data structure.
float32_t intensity
Definition: types.hpp:61
void set_centroid(const PointT &pt)
Sets the centroid. This is to properly encapsulate the member variables. Intended to be used by child...
Definition: voxel.hpp:114
uint32_t count() const
Get the current number of points associated with this voxel.
Definition: voxel.hpp:97
A specialization of the Voxel class, only returns centroid of voxel.
Definition: voxels.hpp:144
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24
const PointT & get() const
Emit the centroid.
Definition: voxel.hpp:87
void set_count(const uint32_t next)
Sets the count. This is to properly encapsulate the member variables. Intended to be used by child cl...
Definition: voxel.hpp:106
PointT centroid(const uint64_t index) const
Computes the centroid for a given voxel index.
Definition: perception/filters/voxel_grid/include/voxel_grid/config.hpp:111
A simple class to accumulate points for a voxel and emit the centroid.
Definition: voxel.hpp:42
float float32_t
Definition: types.hpp:45
A configuration class for the VoxelGrid data structure, also includes some helper functionality for c...
Definition: perception/filters/voxel_grid/include/voxel_grid/config.hpp:52
void add_observation(const PointT &pt)
Update the state of this voxel by incrementally updating the mean.
Definition: voxels.hpp:121
VOXEL_GRID_PUBLIC PointT operator+(const PointT &lhs, const PointT &rhs)
Default addition operator for a point type for use with CentroidVoxel.
Definition: voxels.hpp:46
void configure(const Config &cfg, const uint64_t idx)
Use Config and index to set up any important information, in this case no-op.
Definition: voxels.hpp:134
A specialization of the Voxel class, accumulates points to a moving centroid.
Definition: voxels.hpp:115
float32_t z
Definition: types.hpp:60
void configure(const Config &cfg, const uint64_t idx)
Use Config and index to set up any important information, in this case sets the centroid.
Definition: voxels.hpp:159
void add_observation(const PointT &pt)
Update the state of the voxel, only increments internal counter.
Definition: voxels.hpp:150
float32_t y
Definition: types.hpp:59