|
WPILibC++
2020.3.2
|
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 |
| curvature_t | curvature {0.0} |
Represents one point on the trajectory.
Interpolates between two States.
| endValue | The end value for the interpolation. |
| i | The interpolant (fraction). |
| bool frc::Trajectory::State::operator!= | ( | const State & | other | ) | const |
Checks inequality between this State and another object.
| other | The other object. |
| bool frc::Trajectory::State::operator== | ( | const State & | other | ) | const |
Checks equality between this State and another object.
| other | The other object. |