|
@@ -984,6 +984,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
String[] split = line.split(",");
|
|
|
|
|
|
////添加异常捕获,非正常数据默认为0
|
|
|
+ //1时间 6横向速度 7纵向速度 8横向加速度 9纵向加速度 12steering_angle 13yawrate 27lane_center_offset
|
|
|
// 时间
|
|
|
try {
|
|
|
double aDouble = Double.parseDouble(split[1]);
|
|
@@ -1045,7 +1046,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
longitudinal_acceleration_list.add(0D);
|
|
|
}
|
|
|
|
|
|
- //
|
|
|
+ // steering_angle
|
|
|
try {
|
|
|
double aDouble = Double.parseDouble(split[12]);
|
|
|
if (Double.isNaN(aDouble)) {
|
|
@@ -2404,7 +2405,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
ProjectReportVo vo = (ProjectReportVo) bodyVO.getInfo();
|
|
|
|
|
|
//下载 or 保存本地
|
|
|
- if (param.getIsCreateLocalPdfFile() != null && param.getIsCreateLocalPdfFile() == true) {
|
|
|
+ if (param.getIsCreateLocalPdfFile() != null && param.getIsCreateLocalPdfFile()) {
|
|
|
File file = new File(param.getLocalPdfFilePath());
|
|
|
os = new BufferedOutputStream(Files.newOutputStream(file.toPath()));
|
|
|
} else {
|
|
@@ -3460,7 +3461,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
public void exportProjectTaskFileById(SimulationManualProjectParam param) {
|
|
|
String id = param.getId();
|
|
|
if (StringUtil.isEmpty(id)) {
|
|
|
- throw new RuntimeException("工作id不能为空");
|
|
|
+ throw new RuntimeException("项目 id 不能为空。");
|
|
|
}
|
|
|
|
|
|
//获取任务包信息
|
|
@@ -3468,7 +3469,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
projectTaskParam.setPId(id);
|
|
|
List<ManualProjectTaskVo> manualProjectTaskVos = simulationProjectTaskMapper.selectProjectTaskByProjectId(projectTaskParam);
|
|
|
if (isEmpty(manualProjectTaskVos)) {
|
|
|
- throw new RuntimeException("没有获取到任务信息");
|
|
|
+ throw new RuntimeException("没有获取到任务信息。");
|
|
|
}
|
|
|
|
|
|
//压缩包根路径
|
|
@@ -3501,7 +3502,8 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
String sceneName = sceneBaseInfoVo.getCommonSceneName();
|
|
|
|
|
|
//任务包路径
|
|
|
- String taskPagePath = rootPath + File.separator + sceneName + "(" + i + ")";
|
|
|
+// String taskPagePath = rootPath + File.separator + sceneName + "(" + i + ")";
|
|
|
+ String taskPagePath = rootPath + File.separator + sceneName;
|
|
|
|
|
|
//视频文件路径
|
|
|
MinioParameter minioParameter1 = new MinioParameter();
|