|
TinyRobotics
|
Abstract interface for neighbor queries in map-like data structures. More...
#include <IMap.h>

Public Member Functions | |
| virtual std::vector< Coordinate< T > > | getNeighbors (Coordinate< T > from) const =0 |
| Get world coordinates of neighboring cells (for pathfinding or navigation). | |
| virtual bool | isValid (const Coordinate< T > &coord) const =0 |
| Check if a coordinate is inside the map bounds. | |
Abstract interface for neighbor queries in map-like data structures.
Provides a minimal interface for pathfinding and navigation algorithms to query neighboring coordinates and check coordinate validity. Any map or graph class that supports neighbor queries can implement this interface, enabling use with generic planning algorithms (e.g., A*, Dijkstra).
| T | Scalar type for coordinates and math (default: DistanceM) |
|
pure virtual |
Get world coordinates of neighboring cells (for pathfinding or navigation).
| from | The cell coordinate to find neighbors for. |
Implemented in GridBitMap< T >, GridMap< StateT, T >, CallbackMap< T >, and PointCloud< T >.
|
pure virtual |
Check if a coordinate is inside the map bounds.
| coord | The coordinate to check. |
Implemented in GridBitMap< T >, GridMap< StateT, T >, CallbackMap< T >, and PointCloud< T >.