DistanceField Struct
For each grid cell, the distance in metres to the nearest wall cell, capped at max_distance. More...
Declaration
Included Headers
Public Member Functions Index
| bool | valid () const |
| float | at (const Eigen::Vector2d &point) const |
|
Distance from point to the nearest wall, read from the cell that contains it. More... | |
Public Member Attributes Index
| int | width = 0 |
|
Columns. More... | |
| int | height = 0 |
|
Rows. More... | |
| double | resolution = 0.0 |
|
Cell size, in metres. More... | |
| double | max_distance = 0.0 |
| std::vector< float > | distance |
|
Row-major, indexed [row * width + column], as OccupancyGrid data is. More... | |
Description
For each grid cell, the distance in metres to the nearest wall cell, capped at max_distance.
Definition at line 32 of file scan_match_scoring.hpp.
Public Member Functions
at()
|
Distance from point to the nearest wall, read from the cell that contains it.
- Parameters
-
point Position in the grid frame, in metres.
- Returns
max_distance for a point off the grid, a non-finite point, or an invalid field.
Declaration at line 49 of file scan_match_scoring.hpp, definition at line 23 of file scan_match_scoring.cpp.
valid()
|
- Returns
True if the dimensions are positive and match the size of distance.
Declaration at line 42 of file scan_match_scoring.hpp, definition at line 17 of file scan_match_scoring.cpp.
Public Member Attributes
distance
|
Row-major, indexed [row * width + column], as OccupancyGrid data is.
Definition at line 39 of file scan_match_scoring.hpp.
height
|
Rows.
Definition at line 35 of file scan_match_scoring.hpp.
max_distance
|
Cap on every distance, in metres.
Definition at line 37 of file scan_match_scoring.hpp.
resolution
|
Cell size, in metres.
Definition at line 36 of file scan_match_scoring.hpp.
width
|
Columns.
Definition at line 34 of file scan_match_scoring.hpp.
The documentation for this struct was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.