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§
Sourcefn plan(&self, start: GridNode, goal: GridNode) -> Result<Path2D, RoboticsError>
fn plan(&self, start: GridNode, goal: GridNode) -> Result<Path2D, RoboticsError>
Plan a path on a grid from start to goal
Sourcefn set_obstacles(&mut self, obstacles: &Obstacles)
fn set_obstacles(&mut self, obstacles: &Obstacles)
Set obstacles for the planner