|
@@ -26,7 +26,10 @@ sleep_time = 60 # 每多少秒扫描一次
|
|
|
|
|
|
def move_xosc_before_simulation(root_path):
|
|
def move_xosc_before_simulation(root_path):
|
|
try:
|
|
try:
|
|
- tree1 = ET.parse(root_path + 'scenario_orig.xosc')
|
|
|
|
|
|
+ xosc_path = root_path + 'scenario_orig.xosc'
|
|
|
|
+ logging.info('仿真还原需要的 xosc 路径为:%s' % xosc_path)
|
|
|
|
+ tree1 = ET.parse(xosc_path)
|
|
|
|
+
|
|
root1 = tree1.getroot()
|
|
root1 = tree1.getroot()
|
|
for node0 in root1:
|
|
for node0 in root1:
|
|
if node0.tag == 'RoadNetwork':
|
|
if node0.tag == 'RoadNetwork':
|