19#include <unordered_set> 
   20#include <geometry/spatial_hash.hpp> 
   21#include <geometry/spatial_hash_config.hpp> 
   36  template<
class Po
intT>
 
   40    using Hasher = autoware::common::geometry::spatial_hash::Config2d;
 
   41    using HashIndex = autoware::common::geometry::spatial_hash::Index;
 
   77      double rough_cell_side_count = 0;
 
LookupGrid class implements a fast occupancy grid creation and intersection data structure....
 
Config get_config()
Return the current config.
 
LookupGrid(Config config)
Constructor.
 
static constexpr size_t PLACE_HOLDER_CAPACITY
Static placeholder value for the Autoware.Auto Hasher in use which requires this value but does not u...
 
std::unordered_set< HashIndex > occupied_cells_
The set of occupied cells identified by their hash index.
 
autoware::common::geometry::spatial_hash::Config2d Hasher
 
LookupGrid()
Default constructor Note: This constructor is provided for convenience but users should normally use ...
 
Hasher hasher_
Spatial hasher which defines the grid.
 
autoware::common::geometry::spatial_hash::Index HashIndex
 
Config config_
Configuration.
 
void insert(PointT point)
Adds a point to the grid. The point must lie within the grid bounds. The cell which the point lies in...
 
bool intersects(PointT point) const
Checks if a point lies within an occupied cell of the grid.
 
Stuct containing the algorithm configuration values for approximate_intersection.
 
float32_t min_y
Maximum y dimension.
 
float32_t max_x
Maximum x dimension.
 
float32_t max_y
Maximum y dimension.
 
float32_t min_x
Maximum x dimension.
 
size_t cell_side_length
Cell size length.