Describes a trajectory from sampled points.
Based on a discrete number of points in space and time, a continuous trajectory is calculated using spline interpolation of positions between samples.
points= Dict(key_trait = Float, value_trait = Tuple(Float, Float, Float), …¶
Dictionary that assigns discrete time instants (keys) to sampled (x, y, z) positions along the trajectory (values).
Spline data, internal use.
Returns the positions for one or more instants in time.
- tarray of floats
Instances in time to calculate the positions at.
The order of derivative of the spline to compute, defaults to 0.
- (x, y, z)tuple with arrays of floats
Positions at the given times; x, y and z have the same shape as t.
traj(t_start, t_end=None, delta_t=None, der=0)¶
Python generator that yields locations along the trajectory.
- (x, y, z)tuples of floats
Positions at the desired times are yielded.