mobileRobotPRM
Create probabilistic roadmap path planner
Description
The mobileRobotPRM
object is a roadmap path planner object for
the environment map specified in the Map
property. The object uses the
map to generate a roadmap, which is a network graph of possible paths in the map based on
free and occupied spaces. You can customize the number of nodes,
NumNodes
, and the connection distance,
ConnectionDistance
, to fit the complexity of the map and find an
obstacle-free path from a start to an end location.
After the map is defined, the mobileRobotPRM
path planner generates
the specified number of nodes throughout the free spaces in the map. A connection between
nodes is made when a line between two nodes contains no obstacles and is within the
specified connection distance.
After defining a start and end location, to find an obstacle-free path using this
network of connections, use the findpath
method. If
findpath
does not find a connected path, it returns an empty array.
By increasing the number of nodes or the connection distance, you can improve the
likelihood of finding a connected path, but tuning these properties is necessary. To see
the roadmap and the generated path, use the visualization options in
show
. If you change any of the mobileRobotPRM
properties, call update
, show
, or
findpath
to recreate the roadmap.
Creation
Description
creates an
empty roadmap with default properties. Before you can use the roadmap, you must
specify a planner
= mobileRobotPRMbinaryOccupancyMap
object in the
Map
property.
creates a roadmap with planner
= mobileRobotPRM(map
)map
set as the
Map
property, where map
is a binaryOccupancyMap
object.
sets the maximum number of nodes, planner
= mobileRobotPRM(map
,numnodes
)numnodes
, to the
NumNodes
property.
Input Arguments
Properties
Object Functions
Extended Capabilities
Version History
Introduced in R2019bSee Also
binaryOccupancyMap
| occupancyMap
(Navigation Toolbox) | controllerPurePursuit