|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
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< TrajState > | pts |
| 10 ms-spaced trajectory states. | |
| float | duration = 0.0f |
| Total trajectory length in seconds. | |
Time-parameterized trajectory: dense state table + total duration.
Definition at line 43 of file trajectory.hpp.
|
inline |
Definition at line 49 of file trajectory.hpp.
| TrajState light::Trajectory::sample | ( | float | t | ) | const |
Sample the trajectory at time t.
| t | time in seconds; clamped to [0, duration] |
| float light::Trajectory::duration = 0.0f |
Total trajectory length in seconds.
Definition at line 46 of file trajectory.hpp.
| std::vector<TrajState> light::Trajectory::pts |
10 ms-spaced trajectory states.
Definition at line 45 of file trajectory.hpp.