plot
Description
plot(
plots the RoadRunner HD Map's lane centers, lane boundaries, lane group centers, and
barriers.rrMap
)
plot(
specifies additional name-value pair arguments for the HD map.rrMap
,Name=Value
)
Examples
Plot HD Map from Binary File
Create an empty RoadRunner HD Map by calling the roadrunnerHDMap
object.
rrMap = roadrunnerHDMap;
Specify the name of the binary file you want to read. Use the read
function to read the file specified by the argument filename
.
filename = "C:\RR\MyProject\Scenes\MyMap.rrhd";
read(rrMap,filename)
rrMap
rrMap = roadrunnerHDMap with properties: Author: "Map Author" Projection: "" GeographicBoundary: [2×3 double] Lanes: [0×1 roadrunner.hdmap.Lane] LaneBoundaries: [0×1 roadrunner.hdmap.LaneBoundary] LaneGroups: [0×1 roadrunner.hdmap.LaneGroup] LaneMarkings: [0×1 roadrunner.hdmap.LaneMarking] Junctions: [0×1 roadrunner.hdmap.Junction] BarrierTypes: [0×1 roadrunner.hdmap.BarrierType] Barriers: [0×1 roadrunner.hdmap.Barrier] SignTypes: [0×1 roadrunner.hdmap.SignType] Signs: [0×1 roadrunner.hdmap.Sign]
Plot the map.
plot(rrMap)
Input Arguments
rrMap
— RoadRunner HD Map road data model
roadrunnerHDMap
object
RoadRunner HD Map road data model, specified as a roadrunnerHDMap
object.
rrMap
defines a simple data structure to represent road layouts
using lanes, lane boundaries, lane markings, and junctions. This object provides
functions that support reading, writing, and plotting HD map data.
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.
Example:
Parent
— Handle to axes
object
handle object
Handle to an axes
object, specified as a handle object to
contain the plot. If this property is not specified, the plot
function generates a new figure.
ShowLaneGroups
— Display lane group centers
false or 0
(default) | true or 1
Display lane group centers in the plot, specified as logical 0
(false)
or logical 1 (true)
. If you set
ShowLaneGroups
to true
, then the
plot
function displays the lane group centers in the plot.
ShowBarriers
— Display barrier centers
false or 0
(default) | true or 1
Display barrier centers in the plot, specified as logical 0
(false)
or logical 1 (true)
. If you set
ShowBarriers
to true
, then the
plot
function displays the barrier centers in the plot.
ShowSigns
— Display signs
false or 0
(default) | true or 1
Display signs in the plot, specified as logical 0 (false)
or
logical 1 (true)
. If you set ShowSigns
to
true
, then the plot
function displays the
signs in the plot.
ShowStaticObjects
— Display static objects
false or 0
(default) | true or 1
Display static objects in the plot, specified as logical 0
(false)
or logical 1 (true)
. If you set
ShowStaticObjects
to true
, then the
plot
function displays the static objects in the plot.
ShowLegend
— Display legend
true or 1
(default) | false or 0
Display legend in the plot, specified as logical 1 (true)
or
logical 0 (false)
. If you set ShowLegend
to
false
, then the plot
function does not
displays the legend for the plot. A legend is not shown when the
Parent
name-value argument is specified.
ShowLineMarkers
— Display line markers
true or 1
(default) | false or 0
Display line markers in the plot, specified as logical 1 (true)
or logical 0 (false)
. If you set ShowLineMarkers
to true
, then the plot
function displays the
line markers for the plot.
Version History
Introduced in R2022b
MATLAB Command
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)