1. Put the carla format map file into import| and configure the json file;
2. Execute make import to generate a map used by the source code;
3. Execute make package ARGS="--packages=Package1,Package2" to generate the map function package
(Create distribution packages for assets - CARLA Simulator)
4. Put the generated map package into the release version of carla, in the import folder, execute ./ImportAssets.sh
Note: a> Package1 and Package2 are the names of the imported map packages under Map Import, see the screenshot below
b>The Package_01.json configuration format is as follows:
{
"maps": [
{
"name": "test4",
"source": "./test4/test4.fbx",
"use_carla_materials": false,
"xodr": "./test4/test4.xodr"
},
{
"name": "road_test",
"source": "./road_test/road_test.fbx",
"use_carla_materials": false,
"xodr": "./road_test/road_test.xodr"
},
{
"name": "test",
"source": "./test/test.fbx",
"use_carla_materials": false,
"xodr": "./test/test.xodr"
},
{
"name": "map2",
"source": "./map2/map2.fbx",
"use_carla_materials": false,
"xodr": "./map2/map2.xodr"
},
{
"name": "map3",
"source": "./map3/map3.fbx",
"use_carla_materials": false,
"xodr": "./map3/map3.xodr"
}
],
"props": [
]
}
c>Generated file path: carla/dist/