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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.