WPILibC++  2020.3.2-60-g3011ebe
frc::Trajectory::State Struct Reference

Represents one point on the trajectory. More...

#include <Trajectory.h>

Public Member Functions

bool operator== (const State &other) const
 Checks equality between this State and another object. More...
 
bool operator!= (const State &other) const
 Checks inequality between this State and another object. More...
 
State Interpolate (State endValue, double i) const
 Interpolates between two States. More...
 

Public Attributes

units::second_t t = 0_s
 
units::meters_per_second_t velocity = 0_mps
 
units::meters_per_second_squared_t acceleration = 0_mps_sq
 
Pose2d pose
 
units::curvature_t curvature {0.0}
 

Detailed Description

Represents one point on the trajectory.

Member Function Documentation

◆ Interpolate()

State frc::Trajectory::State::Interpolate ( State  endValue,
double  i 
) const

Interpolates between two States.

Parameters
endValueThe end value for the interpolation.
iThe interpolant (fraction).
Returns
The interpolated state.

◆ operator!=()

bool frc::Trajectory::State::operator!= ( const State other) const

Checks inequality between this State and another object.

Parameters
otherThe other object.
Returns
Whether the two objects are not equal.

◆ operator==()

bool frc::Trajectory::State::operator== ( const State other) const

Checks equality between this State and another object.

Parameters
otherThe other object.
Returns
Whether the two objects are equal.

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