Interpolation¶
interpolation ¶
interpolate ¶
interpolate(trajectory: Trajectory, timestamps: list | ndarray, method: InterpolationMethod = LINEAR, inplace: bool = True) -> Trajectory
Interpolates a trajectory to specified timestamps using the given method.
Parameters:
-
trajectory(Trajectory) –Trajectory to interpolate
-
timestamps(list | ndarray) –Interpolation timestamps
-
method(InterpolationMethod, default:LINEAR) –Interpolation method. Defaults to InterpolationMethod.LINEAR.
-
inplace(bool, default:True) –Perform in-place interpolation. Defaults to True.
Returns:
-
Trajectory(Trajectory) –Interpolated trajectory