trajectory.hpp
Go to the documentation of this file.
Trajectory representation between two calculated points in 1d.
Definition: trajectory.hpp:65
void construct(double dt, double x1, double v1, double x2, double v2, trajectory_rep_e force=TRAJ_EMPTY)
Construct representation of trajectory from (x1,v1) to (x2,v2) in time dt.
Definition: trajectory.cpp:53
void debug_print(std::ostream &os) const
Print debugging information to os.
Definition: trajectory.cpp:340
void coord(double &x, double &v, double K)
Calculate location x and velocity v at parametric time K.
Definition: trajectory.cpp:152
uint32_t get_representation_order(void) const
Returns order of polynomial used.
Definition: trajectory.cpp:325
int solve(double K[3], double x, int extrapolate=0)
Solves for trajectory intersection with location.
Definition: trajectory.cpp:186
TrajectoryRep1D()
Default constructor for empty representation.
Definition: trajectory.hpp:76