Skip to main content

PathTracker

Trait PathTracker 

Source
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§

Source

fn compute_control( &mut self, current_state: &State2D, path: &Path2D, ) -> ControlInput

Compute control input to follow the path

Source

fn is_goal_reached(&self, current_state: &State2D, goal: Point2D) -> bool

Check if the goal has been reached

Implementors§