LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
light::Trajectory Class Reference

Time-parameterized trajectory: dense state table + total duration. More...

#include <trajectory.hpp>

Public Member Functions

bool empty () const
 
TrajState sample (float t) const
 Sample the trajectory at time t.
 

Public Attributes

std::vector< TrajStatepts
 10 ms-spaced trajectory states.
 
float duration = 0.0f
 Total trajectory length in seconds.
 

Detailed Description

Time-parameterized trajectory: dense state table + total duration.

Definition at line 43 of file trajectory.hpp.

Member Function Documentation

◆ empty()

bool light::Trajectory::empty ( ) const
inline
Returns
true if the trajectory is empty (generation failed).

Definition at line 49 of file trajectory.hpp.

◆ sample()

TrajState light::Trajectory::sample ( float  t) const

Sample the trajectory at time t.

Parameters
ttime in seconds; clamped to [0, duration]

Member Data Documentation

◆ duration

float light::Trajectory::duration = 0.0f

Total trajectory length in seconds.

Definition at line 46 of file trajectory.hpp.

◆ pts

std::vector<TrajState> light::Trajectory::pts

10 ms-spaced trajectory states.

Definition at line 45 of file trajectory.hpp.


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