MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
使用 MATLAB 绘制 RoadRunner 高清地图
自 R2022b 起
plot(rrMap)
plot(rrMap,Name=Value)
plot(rrMap) 绘制了 RoadRunner 高清地图的车道中心、车道边界、车道组中心和隔离物。
rrMap
示例
plot(rrMap,Name=Value) 指定高精地图的附加名称-值对参数。
Name=Value
全部折叠
此示例使用:
通过调用 roadrunnerHDMap 对象创建一个空的 RoadRunner 高清地图。
roadrunnerHDMap
rrMap = roadrunnerHDMap;
指定要读取的二进制文件的名称。使用 read 函数读取参数 filename 指定的文件。
read
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]
绘制地图。
RoadRunner 高清地图道路数据模型,指定为 roadrunnerHDMap 对象。rrMap 定义了一个简单的数据结构,使用车道、车道边界、车道标记和交叉口来表示道路布局。该对象提供支持读取、写入和绘制高精地图数据的功能。
将可选参量对组指定为 Name1=Value1,...,NameN=ValueN,其中 Name 是参量名称,Value 是对应的值。名称-值参量必须出现在其他参量之后,但对各个参量对组的顺序没有要求。
Name1=Value1,...,NameN=ValueN
Name
Value
示例:
Parent
axes
axes 对象的句柄,指定为包含绘图的句柄对象。如果未指定此属性,则 plot 函数会生成一个新图窗。
plot
ShowLaneGroups
false or 0
true or 1
在图中显示车道组中心,指定为 logical 0 (false) 或 logical 1 (true)。如果将 ShowLaneGroups 设置为 true,则 plot 函数会在图中显示车道组中心。
logical 0 (false)
logical 1 (true)
true
ShowBarriers
显示图中的隔离物中心,指定为 logical 0 (false) 或 logical 1 (true)。如果将 ShowBarriers 设置为 true,则 plot 函数会在图中显示隔离物中心。
ShowSigns
在图中显示标志,指定为 logical 0 (false) 或 logical 1 (true)。如果将 ShowSigns 设置为 true,则 plot 函数会在图中显示标志。
ShowStaticObjects
在图中显示静态目标,指定为 logical 0 (false) 或 logical 1 (true)。如果将 ShowStaticObjects 设置为 true,则 plot 函数将显示图中的静态目标。
ShowLegend
在图中显示图例,指定为 logical 1 (true) 或 logical 0 (false)。如果将 ShowLegend 设置为 false,则 plot 函数不会显示绘图的图例。当指定 Parent 名称-值参数时,不显示图例。
false
ShowLineMarkers
在图中显示线标记,指定为 logical 1 (true) 或 logical 0 (false)。如果将 ShowLineMarkers 设置为 true,则 plot 函数将显示绘图的线标记。
在 R2022b 中推出
roadrunner
write
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处