Skip to main content

Module trajectory

Module trajectory 

Source

Enums§

TrajectoryError

Functions§

init
next
Tries to pop a step from the front of the TRAJECTORY. If the trajectory is empty, Ok(None) is returned. Otherwise checks that the popped planning_step matches the provided Attempt, and then returns a new PlanningStep (as an Ok(Some(planning_step))), with the Attempt in the popped step replaced with the provided Attempt. If the Attempts do not match, Err(TrajectoryError::OffTrajectory) is returned and a TrajectoryDeviation is sent up the pipe to the navigator.
pop_front
Pops a step from the front of the TRAJECTORY. Panics if:
record_rollback_sub_trajectory
Record the sub-trajectory that we expect to repetedely traverse during fuzzing soft-rollback.
restore_rollback_sub_trajectory
Restore TRAJECTORY to the sub-trajectory that was recorded with record_rollback_sub_trajectory.