Main Content

show

Show map, roadmap, and path

Description

show(prm) shows the map and the roadmap, specified as prm in a figure window. If no roadmap exists, update is called. If a path is computed before calling show, the path is also plotted on the figure.

show(prm,Name,Value) sets the specified Value to the property Name.

Input Arguments

collapse all

Roadmap path planner, specified as a mobileRobotPRM object.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'Path','off'

Axes to plot the map specified as a comma-separated pair consisting of "Parent" and either an Axes or UIAxesobject. See axes or uiaxes.

Map display option, specified as the comma-separated pair consisting of "Map" and either "on" or "off".

Roadmap display option, specified as the comma-separated pair consisting of "Roadmap" and either "on" or "off".

Path display option, specified as "on" or "off". This controls whether the computed path is shown in the plot.

Version History

Introduced in R2019b