|
Autoware.Auto
|
|
#include <point_cloud_map.hpp>
Public Types | |
| using | Cloud = sensor_msgs::msg::PointCloud2 |
| using | CloudConstIt = sensor_msgs::PointCloud2ConstIterator< float32_t > |
Public Member Functions | |
| DualVoxelMap (const perception::filters::voxel_grid::Config &grid_config, const std::string &frame_id, LocalizerMapT &&localizer_map) | |
| MapUpdateSummary | update (const Cloud &observation) |
| void | write (const std::string &file_name_prefix) const |
| std::size_t | size () const noexcept |
| Size of the voxel grid. More... | |
| std::size_t | capacity () const noexcept |
| Capacity of the voxel grid. More... | |
| void | clear () |
| Clear the voxel grid. More... | |
| const LocalizerMapT & | localizer_map () const noexcept |
| Get the localizer map. More... | |
| const std::string & | frame_id () const noexcept |
| Get the frame ID of the map. More... | |
| bool | empty () |
| Get if the map is empty. More... | |
Static Public Attributes | |
| static constexpr auto | NUM_FIELDS {4U} |
A map that accumulates lidar scans in a downsampled format using a voxel grid. A voxel grid is used for accumulating the lidar scans in a downsampled manner. A separate map is stored for the localizer implementation. The expected interface is defined via the Requires keyword.
| using autoware::mapping::point_cloud_mapping::DualVoxelMap< LocalizerMapT, Requires >::Cloud = sensor_msgs::msg::PointCloud2 |
| using autoware::mapping::point_cloud_mapping::DualVoxelMap< LocalizerMapT, Requires >::CloudConstIt = sensor_msgs::PointCloud2ConstIterator<float32_t> |
|
inlineexplicit |
Constructor
| grid_config | Grid configuration of the underlying voxel grid. |
| frame_id | Frame id of the map. |
| localizer_map | Localizer map to be stored. |
|
inlinenoexcept |
Capacity of the voxel grid.
|
inline |
Clear the voxel grid.
|
inline |
Get if the map is empty.
|
inlinenoexcept |
Get the frame ID of the map.
|
inlinenoexcept |
Get the localizer map.
|
inlinenoexcept |
Size of the voxel grid.
|
inline |
Try to extend the map with the given point cloud.
| observation | Point cloud in the "map" frame to add to the map. |
|
inline |
Convert the voxel grid to a point cloud and write it to a pcd file.
| file_name_prefix | File name prefix of the file. |
|
static |