|
Autoware.Auto
|
|
A voxel grid implementation for normal distribution transform. More...
#include <ndt_grid.hpp>
Public Types | |
| using | Grid = std::unordered_map< uint64_t, VoxelT > |
| using | Point = Eigen::Vector3d |
| using | Config = autoware::perception::filters::voxel_grid::Config |
| using | VoxelViewVector = std::vector< VoxelView< VoxelT > > |
| using | ConfigPoint = std::decay_t< decltype(std::declval< Config >().get_min_point())> |
Public Member Functions | |
| NDTGrid (const Config &voxel_grid_config) | |
| NDTGrid (const NDTGrid &)=delete | |
| NDTGrid & | operator= (const NDTGrid &)=delete |
| NDTGrid (NDTGrid &&)=default | |
| NDTGrid & | operator= (NDTGrid &&)=default |
| const VoxelViewVector & | cell (float32_t x, float32_t y, float32_t z) const |
| const VoxelViewVector & | cell (const Point &pt) const |
| std::size_t | size () const noexcept |
| const ConfigPoint & | cell_size () const noexcept |
| Grid::const_iterator | begin () const noexcept |
| Returns an const iterator to the first element of the map. More... | |
| Grid::iterator | begin () noexcept |
| Returns an iterator to the first element of the map. More... | |
| Grid::const_iterator | cbegin () const noexcept |
| Returns a const iterator to the first element of the map. More... | |
| Grid::const_iterator | end () const noexcept |
| Returns a const iterator to one past the last element of the map. More... | |
| Grid::iterator | end () noexcept |
| Returns an iterator to one past the last element of the map. More... | |
| Grid::const_iterator | cend () const noexcept |
| Returns a const iterator to one past the last element of the map. More... | |
| void | clear () noexcept |
| Clear all voxels in the map. More... | |
| auto | index (const Point &pt) const |
| template<typename ... Args> | |
| auto | emplace_voxel (Args &&... args) |
| Emplace a new voxel into the grid. More... | |
| void | add_observation (const Point &pt) |
A voxel grid implementation for normal distribution transform.
| VoxelT | Voxel type |
| using autoware::localization::ndt::NDTGrid< VoxelT >::Config = autoware::perception::filters::voxel_grid::Config |
| using autoware::localization::ndt::NDTGrid< VoxelT >::ConfigPoint = std::decay_t<decltype(std::declval<Config>().get_min_point())> |
| using autoware::localization::ndt::NDTGrid< VoxelT >::Grid = std::unordered_map<uint64_t, VoxelT> |
| using autoware::localization::ndt::NDTGrid< VoxelT >::Point = Eigen::Vector3d |
| using autoware::localization::ndt::NDTGrid< VoxelT >::VoxelViewVector = std::vector<VoxelView<VoxelT> > |
|
inlineexplicit |
Constructor
| voxel_grid_config | Voxel grid config to configure the underlying voxel grid. |
|
delete |
|
default |
|
inline |
|
inlinenoexcept |
Returns an const iterator to the first element of the map.
|
inlinenoexcept |
Returns an iterator to the first element of the map.
|
inlinenoexcept |
Returns a const iterator to the first element of the map.
|
inline |
Lookup the cell at location.
| x | x coordinate |
| y | y coordinate |
| z | z coordinate |
|
inline |
Lookup the cell at location.
| pt | point to lookup |
|
inlinenoexcept |
Get size of the cell.
|
inlinenoexcept |
Returns a const iterator to one past the last element of the map.
|
inlinenoexcept |
Clear all voxels in the map.
|
inline |
Emplace a new voxel into the grid.
| args | Arguments. An index and a voxel is expected |
unordered_map::emplace().
|
inlinenoexcept |
Returns a const iterator to one past the last element of the map.
|
inlinenoexcept |
Returns an iterator to one past the last element of the map.
|
inline |
Get voxel index given a point.
| pt | point |
|
delete |
|
default |
|
inlinenoexcept |
Get size of the map