HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
path.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  PathPoint
 Represents a single point along an autonomous path. More...
 

Enumerations

enum class  HeadingMode { FollowPath , HoldAngle , CustomAngles }
 Specifies the heading behavior during path following. More...
 

Functions

std::vector< PathPointparsePathData (const std::string &input_source, bool convertFromMeters=false)
 Parses path point data from a file or string.
 

Enumeration Type Documentation

◆ HeadingMode

enum class HeadingMode
strong

Specifies the heading behavior during path following.

Enumerator
FollowPath 
HoldAngle 
CustomAngles 

Definition at line 18 of file path.h.

Function Documentation

◆ parsePathData()

std::vector< PathPoint > parsePathData ( const std::string &  input_source,
bool  convertFromMeters = false 
)

Parses path point data from a file or string.

Parameters
input_sourceThe source identifier (e.g. filename).
convertFromMetersTrue to scale the values from meters to inches.
Returns
std::vector<PathPoint> The parsed vector of path points.