path = plan(planner,start,goal)
finds the shortest obstacle-free path, path, between a specified start
point, start, and goal point, goal, specified as
[row column] in grid frame with origin at top-left corner, using the
specified A* path planner planner.
path = plan(planner,start,goal,'world')
finds the shortest obstacle-free path, path, between a specified start
point, start, and goal point, goal, specified as
[x y] in world coordinate frame with origin at bottom-left corner,
using the specified A* path planner planner.
[path,debugInfo] = plan(___)
also returns debugInfo that contains the path cost, number of nodes
explored, and GCost for each explored node.
A* path planner for a grid map, specified as a plannerAStarGrid
object.
Start position in the grid or world, specified as a two-element vector of the form
[rowcolumn], or [xy]. The location is in grid positions or world coordinates based on
syntax.
Example: [2 3]
Data Types: double
Goal position in the grid or world, specified as a two-element vector of the form
[rowcolumn], or [xy]. The location is in grid positions or world coordinates based on
syntax.
Shortest obstacle-free path, returned as an n-by-2 matrix.
n is the number of waypoints in the path. Each row represents the
[rowcolumn], or [xy] location of a waypoint along the solved path from the start
location to the goal. The location is in grid positions or world coordinates based on
syntax.
Data Types: double
Debugging information for the path result, returned as a structure with these fields: