|
TinyRobotics
|
Represents a path segment (edge) between two coordinates in a graph. More...
#include <PathSegment.h>

Public Attributes | |
| CoordinateT | from |
| CoordinateT | to |
| float | cost = 0.0 |
| bool | directed = false |
Represents a path segment (edge) between two coordinates in a graph.
Each segment connects two nodes (coordinates) and can be used to define the edges in a graph for pathfinding algorithms such as A* or Dijkstra's. The segment has:
This class is a fundamental building block for creating a path map for navigation, motion planning, and graph-based search.
| Coordinate | The coordinate type (e.g., 2D or 3D point). |