|
@@ -10,7 +10,8 @@ import logging
|
|
|
key1 = 'pjibot_delivery/'
|
|
|
path1 = '/scenarios1/'
|
|
|
path2 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_delivery/'
|
|
|
-path3 = '/mnt/disk001/simulation_outdoor/'
|
|
|
+xodr_src = '/mnt/disk001/simulation_outdoor/thq_20240706.xodr'
|
|
|
+osgb_src = '/mnt/disk001/simulation_outdoor/thq_20230710.osgb'
|
|
|
# xodr = 'thq_1116.xodr'
|
|
|
# osgb = 'thq_1116.opt.osgb'
|
|
|
xodr = 'thq_20240706.xodr'
|
|
@@ -37,13 +38,12 @@ def move_xosc_before_simulation(root_path):
|
|
|
if node0.tag == 'RoadNetwork':
|
|
|
for node1 in node0:
|
|
|
# 打印根元素的标签名
|
|
|
- src_file_prefix = path3
|
|
|
if 'LogicFile' == node1.tag:
|
|
|
- shutil.copy(src_file_prefix + xodr, xodr_path)
|
|
|
+ shutil.copy(xodr_src, xodr_path)
|
|
|
node1.set('filepath', xodr_path)
|
|
|
logging.info('更新 xodr 路径为:%s' % xodr_path)
|
|
|
if 'SceneGraphFile' == node1.tag:
|
|
|
- shutil.copy(src_file_prefix + osgb, osgb_path)
|
|
|
+ shutil.copy(osgb_src, osgb_path)
|
|
|
node1.set('filepath', osgb_path)
|
|
|
logging.info('更新 osgb 路径为:%s' % osgb_path)
|
|
|
if node0.tag == 'Entities':
|