pub trait FullTrajectory<X, T, S1, S2, const N: usize>{
// Required methods
fn start(&self) -> &Vector<X, Const<N>, S1>;
fn end(&self) -> &Vector<X, Const<N>, S2>;
fn trajectory(&self) -> &T;
fn cost(&self) -> X;
fn interpolate(&self, t: X) -> SVector<X, N>;
}Expand description
Genericly stored trajectory, implemented by FullTraj and FullTrajRef
Generic parameter S details what kind of nalgebra storage is being used
Required Methods§
Sourcefn trajectory(&self) -> &T
fn trajectory(&self) -> &T
The extra Trajectory
Sourcefn interpolate(&self, t: X) -> SVector<X, N>
fn interpolate(&self, t: X) -> SVector<X, N>
Interpolate a coordinate between the start and end points
Start point is assumed to be at t = 0.0 and end point at t = 1.0