Skip to main content

GridPathPlanner

Trait GridPathPlanner 

Source
pub trait GridPathPlanner {
    // Required methods
    fn plan(
        &self,
        start: GridNode,
        goal: GridNode,
    ) -> Result<Path2D, RoboticsError>;
    fn set_obstacles(&mut self, obstacles: &Obstacles);
}
Expand description

Trait for grid-based path planning algorithms

Required Methods§

Source

fn plan(&self, start: GridNode, goal: GridNode) -> Result<Path2D, RoboticsError>

Plan a path on a grid from start to goal

Source

fn set_obstacles(&mut self, obstacles: &Obstacles)

Set obstacles for the planner

Implementors§