|
@@ -8,7 +8,7 @@ import docker
|
|
import logging
|
|
import logging
|
|
|
|
|
|
key1 = 'pjibot_delivery/'
|
|
key1 = 'pjibot_delivery/'
|
|
-path1 = '/scenarios1/'
|
|
|
|
|
|
+path1 = '/scenarios2/'
|
|
path2 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_delivery/'
|
|
path2 = '/mnt/disk001/dcl_data_process/src/python2/pjibot_delivery/'
|
|
xodr_src = '/mnt/disk001/simulation_outdoor/thq_20240706.xodr'
|
|
xodr_src = '/mnt/disk001/simulation_outdoor/thq_20240706.xodr'
|
|
osgb_src = '/mnt/disk001/simulation_outdoor/thq_20230710.osgb'
|
|
osgb_src = '/mnt/disk001/simulation_outdoor/thq_20230710.osgb'
|
|
@@ -71,7 +71,7 @@ def upload_simulation(parse_prefix, mp41):
|
|
|
|
|
|
def simulation(parse_prefix, mp41):
|
|
def simulation(parse_prefix, mp41):
|
|
try:
|
|
try:
|
|
- os.system("docker start vtd1")
|
|
|
|
|
|
+ os.system("docker start vtd2")
|
|
# 实例化Docker客户端
|
|
# 实例化Docker客户端
|
|
client = docker.from_env()
|
|
client = docker.from_env()
|
|
while True:
|
|
while True:
|
|
@@ -81,7 +81,7 @@ def simulation(parse_prefix, mp41):
|
|
run = False
|
|
run = False
|
|
# 打印容器列表
|
|
# 打印容器列表
|
|
for container in containers:
|
|
for container in containers:
|
|
- if 'vtd1' == container.name:
|
|
|
|
|
|
+ if 'vtd2' == container.name:
|
|
run = True
|
|
run = True
|
|
break
|
|
break
|
|
if not run:
|
|
if not run:
|