Web UI Maps Tab Explanation
A Map
can be in the following states.
- A
Map
with a local URL or if it has already been downloaded will have aValid
status. - If the URL to the
Map
assetbundle is not local and the assetbundle is not in the local database, then the map needs to be downloaded. Currently only 1 assetbundle is downloaded at a time.- If an assetbundle is downloading, the
Map
will show a GREY dot and the status will beDownloading
with the download percentage. - If another assetbundle is downloading, the icon will be ORANGE and the status will be
Downloading
without a percentage. - A downloading
Map
can be interrupted by pressing the stop button.
- If an assetbundle is downloading, the
- If the
Map
is not usable in a Simulation it will have anInvalid
status. This can be because the local assetbundle is not usable or the download was interrupted.
Where to find Maps top#
Map AssetBundles and HD maps are available on our content website. When adding a map, the link to the appropriate AssetBundle can be entered as the URL or the AssetBundle can be downloaded manually and the local path can be entered.
The HD maps for maps are available in the same page. Please see the relevant doc for instructions on how to add an HD map to an AD Stack:
How to Add a Map top#
- Click the
Add new
button. - In the dialogue that opens, enter the name of the map and the URL to the AssetBundle. This can be a URL to a location in the cloud (e.g. the link to the assetbundle on the content website) or to a location on a local drive (the absolute path to the
environment_XXX
file). - If the URL is not local, the AssetBundle will be downloaded to the local database.
How to Edit a Map top#
- Click the pencil icon
- In the dialogue that opens, the name of the map can be changed and the URL to the AssetBundle.
- If the URL is changed, the AssetBundle in the database will be updated (downloaded if necessary)
How to Annotate a Map top#
Please see Map Annotation for more information on how to annotate a map in Unity. This also details how to export or import and HD map.
How to Migrate a Map top#
If you have created maps in our old simulator (before HDRP), you can reuse those maps in current HDRP simulator by following steps:
- In old simulator
- You need to make some changes in header inside
HDMapTool.cs
(line 148-154):- Convert your MapOrigin Northing/Easting to Longitude/Latitude.
- Replace values for
left
andright
with Longitude. - Repalce values for
top
andbottom
with Latitude. - You also need to change zone in header.
- If you have intersections annotated, you need to annotate junctions like here for each intersection in the old simulator since we are importing intersections based on
junction
in HDRP simulator. Otherwise, signals/signs will not be grouped correctly, every signal/sign will be created as an intersection object. - Export map to Apollo Map file:
base_map.bin
.
- You need to make some changes in header inside
- In current HDRP simulator
- Select
Simulator->Import HD Map
, and setImport Format
asApollo 5 HD Map
. - Select the exported map and import.
- Select
- Note, you need to check intersections, some signals/signs may be grouped incorrectly.