|
@@ -5052,6 +5052,13 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
boolean mp4_done = false;
|
|
|
boolean Ego_csv_done = false;
|
|
|
boolean evaluation_csv_done = false;
|
|
|
+ boolean output_driverCtrl_csv_done = false;
|
|
|
+ boolean output_objectState_sensor_csv_done = false;
|
|
|
+ boolean output_objectState_csv_done = false;
|
|
|
+ boolean output_roadMark_csv_done = false;
|
|
|
+ boolean output_roadPos_csv_done = false;
|
|
|
+ boolean output_trafficLight_csv_done = false;
|
|
|
+ boolean output_trafficSignal_csv_done = false;
|
|
|
|
|
|
for (String s : info) {
|
|
|
String fileName;
|
|
@@ -5132,6 +5139,181 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
}
|
|
|
in.close();
|
|
|
evaluation_csv_done = true;
|
|
|
+ }else if ("output_driverCtrl.csv".equals(fileName)) {
|
|
|
+ if (output_driverCtrl_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_driverCtrl_csv_done = true;
|
|
|
+ }else if ("output_objectState_sensor.csv".equals(fileName)) {
|
|
|
+ if (output_objectState_sensor_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_objectState_sensor_csv_done = true;
|
|
|
+ }else if ("output_objectState.csv".equals(fileName)) {
|
|
|
+ if (output_objectState_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_objectState_csv_done = true;
|
|
|
+ }else if ("output_roadMark.csv".equals(fileName)) {
|
|
|
+ if (output_roadMark_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_roadMark_csv_done = true;
|
|
|
+ }else if ("output_roadPos.csv".equals(fileName)) {
|
|
|
+ if (output_roadPos_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_roadPos_csv_done = true;
|
|
|
+ }else if ("output_trafficLight.csv".equals(fileName)) {
|
|
|
+ if (output_trafficLight_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_trafficLight_csv_done = true;
|
|
|
+ }else if ("output_trafficSignal.csv".equals(fileName)) {
|
|
|
+ if (output_trafficSignal_csv_done) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ MinioParameter minioParameter = new MinioParameter();
|
|
|
+ if (s.contains("/")) {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
+ } else {
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
+ }
|
|
|
+
|
|
|
+ Response download = fileDownService.download(minioParameter);
|
|
|
+ Response.Body body = download.body();
|
|
|
+
|
|
|
+ // 任务文件路径
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
+
|
|
|
+ ZipEntry entry = new ZipEntry(taskFilePath);
|
|
|
+ zos.putNextEntry(entry);
|
|
|
+ BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+ while ((len = in.read(buffer)) != -1) {
|
|
|
+ zos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ in.close();
|
|
|
+ output_trafficSignal_csv_done = true;
|
|
|
}
|
|
|
}
|
|
|
}
|