TinyRobotics
Loading...
Searching...
No Matches
Public Attributes | List of all members
PathSegment< CoordinateT > Class Template Reference

Represents a path segment (edge) between two coordinates in a graph. More...

#include <PathSegment.h>

Collaboration diagram for PathSegment< CoordinateT >:
Collaboration graph
[legend]

Public Attributes

CoordinateT from
 
CoordinateT to
 
float cost = 0.0
 
bool directed = false
 

Detailed Description

template<typename CoordinateT = Coordinate<DistanceM>>
class tinyrobotics::PathSegment< CoordinateT >

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.

Template Parameters
CoordinateThe coordinate type (e.g., 2D or 3D point).

The documentation for this class was generated from the following file: