Bootstrap

carla地图导入和导出记录

1、carla格式地图文件放入import|,并配置json文件;

2、执行make import 可生成源码使用的地图;

3、执行make package ARGS="--packages=Package1,Package2"生成地图功能包

Create distribution packages for assets - CARLA Simulator

4、生成的地图包放入release版本的carla,在import文件夹,执行./ImportAssets.sh

注意:a> Package1和Package2为地图Import下的导入地图包的名称,见下方截图

b>其中Package_01.json配置格式如下:

{
  "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>生成的文件路径:carla/dist/
 

;