LingxinMeng 7 mesi fa
parent
commit
b4a0cb30f5

+ 4 - 1
src/python2/pjibot_delivery/simulation-pjibot_delivery.py

@@ -26,7 +26,10 @@ sleep_time = 60  # 每多少秒扫描一次
 
 def move_xosc_before_simulation(root_path):
     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()
         for node0 in root1:
             if node0.tag == 'RoadNetwork':