Main Content

findpath

Find path between start and goal points on roadmap

Description

xy= findpath(prm,start,goal)finds an obstacle-free path betweenstartandgoallocations withinprm, a roadmap object that contains a network of connected points.

If any properties ofprm改变,或如果没有创建路线图,updateis called.

Input Arguments

阿胶pse all

Roadmap path planner, specified as amobileRobotPRMobject.

Start location of path, specified as a 1-by-2 vector representing an[x y]pair.

Example:[0 0]

Final location of path, specified as a 1-by-2 vector representing an[x y]pair.

Example:[10 10]

Output Arguments

阿胶pse all

Waypoints for a path between start and goal, specified as an-by-2 column vector of[x y]pairs, wherenis the number of waypoints. These pairs represent the solved path from thestartandgoallocations, given the roadmap from theprminput object.

Version History

Introduced in R2019b