|
@@ -10,10 +10,13 @@ import logging
|
|
|
key1 = 'pjibot_patrol/'
|
|
|
path1 = '/scenarios2/'
|
|
|
path2 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_patrol/'
|
|
|
-path3 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_patroly/resource/'
|
|
|
+path3 = '/mnt/disk001/simulation_outdoor/'
|
|
|
+xodr = 'thq_1116.xodr'
|
|
|
+osgb = 'thq_1116.opt.osgb'
|
|
|
vehicle_name = 'PuJin_patrol_robot' # 配送 PuJin_distribution 巡检 PuJin_patrol_robot
|
|
|
xoscName = 'scenario.xosc'
|
|
|
|
|
|
+
|
|
|
logging.basicConfig(filename=path2 + 'log/simulation.log', level=logging.INFO,
|
|
|
format='%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
|
@@ -22,10 +25,6 @@ sleep_time = 60 # 每多少秒扫描一次
|
|
|
|
|
|
def move_xosc_before_simulation(root_path):
|
|
|
try:
|
|
|
-
|
|
|
- xodr = 'thq_1116.xodr'
|
|
|
- osgb = 'thq_1116.opt.osgb'
|
|
|
-
|
|
|
tree1 = ET.parse(root_path + 'scenario_orig.xosc')
|
|
|
root1 = tree1.getroot()
|
|
|
for node0 in root1:
|