pub trait PathTracker {
// Required methods
fn compute_control(
&mut self,
current_state: &State2D,
path: &Path2D,
) -> ControlInput;
fn is_goal_reached(&self, current_state: &State2D, goal: Point2D) -> bool;
}Expand description
Trait for path tracking/following algorithms
Required Methods§
Sourcefn compute_control(
&mut self,
current_state: &State2D,
path: &Path2D,
) -> ControlInput
fn compute_control( &mut self, current_state: &State2D, path: &Path2D, ) -> ControlInput
Compute control input to follow the path
Sourcefn is_goal_reached(&self, current_state: &State2D, goal: Point2D) -> bool
fn is_goal_reached(&self, current_state: &State2D, goal: Point2D) -> bool
Check if the goal has been reached