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:
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.