|
@@ -11,8 +11,11 @@ key1 = 'pjibot_delivery/'
|
|
path1 = '/scenarios1/'
|
|
path1 = '/scenarios1/'
|
|
path2 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_delivery/'
|
|
path2 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_delivery/'
|
|
path3 = '/mnt/disk001/simulation_outdoor/'
|
|
path3 = '/mnt/disk001/simulation_outdoor/'
|
|
-xodr = 'thq_1116.xodr'
|
|
|
|
-osgb = 'thq_1116.opt.osgb'
|
|
|
|
|
|
+# xodr = 'thq_1116.xodr'
|
|
|
|
+# osgb = 'thq_1116.opt.osgb'
|
|
|
|
+xodr = 'thq_20240706.xodr'
|
|
|
|
+osgb = 'thq_20230710.osgb'
|
|
|
|
+
|
|
vehicle_name = 'PuJin_distribution' # 配送 PuJin_distribution 巡检 PuJin_patrol_robot
|
|
vehicle_name = 'PuJin_distribution' # 配送 PuJin_distribution 巡检 PuJin_patrol_robot
|
|
xoscName = 'scenario.xosc'
|
|
xoscName = 'scenario.xosc'
|
|
logging.basicConfig(filename=path2 + 'log/simulation.log', level=logging.INFO,
|
|
logging.basicConfig(filename=path2 + 'log/simulation.log', level=logging.INFO,
|
|
@@ -23,10 +26,6 @@ sleep_time = 60 # 每多少秒扫描一次
|
|
|
|
|
|
def move_xosc_before_simulation(root_path):
|
|
def move_xosc_before_simulation(root_path):
|
|
try:
|
|
try:
|
|
-
|
|
|
|
- xodr = 'thq_20240706.xodr'
|
|
|
|
- osgb = 'thq_20230710.osgb'
|
|
|
|
-
|
|
|
|
tree1 = ET.parse(root_path + 'scenario_orig.xosc')
|
|
tree1 = ET.parse(root_path + 'scenario_orig.xosc')
|
|
root1 = tree1.getroot()
|
|
root1 = tree1.getroot()
|
|
for node0 in root1:
|
|
for node0 in root1:
|