|
Thunderbots Project
|
#include <trajectory.hpp>
Public Member Functions | |
| virtual P | getPosition (double t_sec) const =0 |
| virtual V | getVelocity (double t_sec) const =0 |
| virtual A | getAcceleration (double t_sec) const =0 |
| virtual double | getTotalTime () const =0 |
| P | getDestination () const |
Interface for a trajectory
A trajectory is a path that is parameterized by time. It is a function that takes in a time and returns a position, velocity, and acceleration.
| P | The type of position |
| V | The type of velocity |
| A | The type of acceleration |
|
pure virtual |
Get acceleration at time t
| t_sec | Duration elapsed since start of trajectory in seconds |
Implemented in BangBangTrajectory1D, BangBangTrajectory1DAngular, BangBangTrajectory2D, and TrajectoryPath.
|
inline |
Get the final desired destination
|
pure virtual |
Get position at time t
| t_sec | Duration elapsed since start of trajectory in seconds |
Implemented in BangBangTrajectory1D, BangBangTrajectory1DAngular, BangBangTrajectory2D, and TrajectoryPath.
|
pure virtual |
Get total runtime of trajectory
Implemented in BangBangTrajectory1D, BangBangTrajectory1DAngular, BangBangTrajectory2D, and TrajectoryPath.
|
pure virtual |
Get velocity at time t
| t_sec | Duration elapsed since start of trajectory in seconds |
Implemented in BangBangTrajectory1D, BangBangTrajectory1DAngular, BangBangTrajectory2D, and TrajectoryPath.