|
@@ -168,6 +168,9 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
//下载caches/image,算法会执行快一些
|
|
//下载caches/image,算法会执行快一些
|
|
String ossResultPath = String.format(UploadFilePath.scene_result_data_path, message.getSceneNum());
|
|
String ossResultPath = String.format(UploadFilePath.scene_result_data_path, message.getSceneNum());
|
|
fYunFileService.downloadFileByCommand(path + "/caches/images/", ossResultPath + "caches/images/");
|
|
fYunFileService.downloadFileByCommand(path + "/caches/images/", ossResultPath + "caches/images/");
|
|
|
|
+
|
|
|
|
+ //下载点位校准文件
|
|
|
|
+ fYunFileService.downloadFileByCommand(path + "/extras/", ossResultPath + "extras/");
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -247,6 +250,10 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
//上传mesh文件
|
|
//上传mesh文件
|
|
fYunFileService.uploadFileByCommand(laserObjFilePath + "/results/mesh", String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "mesh");
|
|
fYunFileService.uploadFileByCommand(laserObjFilePath + "/results/mesh", String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "mesh");
|
|
|
|
|
|
|
|
+ CreateObjUtil.convertTxtToVisionmodeldata(resultsPath + "vision.txt", resultsPath + "vision.modeldata");
|
|
|
|
+ fYunFileService.uploadFile(resultsPath + "vision.txt", ossImagePath.concat("vision.txt"));
|
|
|
|
+ fYunFileService.uploadFile(resultsPath + "vision.modeldata", ossImagePath.concat("vision.modeldata"));
|
|
|
|
+
|
|
if(!ObjectUtils.isEmpty(scenePro)){
|
|
if(!ObjectUtils.isEmpty(scenePro)){
|
|
LambdaUpdateWrapper<ScenePro> updateWrapper = new LambdaUpdateWrapper<ScenePro>()
|
|
LambdaUpdateWrapper<ScenePro> updateWrapper = new LambdaUpdateWrapper<ScenePro>()
|
|
.set(ScenePro::getStatus, -2).eq(ScenePro::getNum, projectNum);
|
|
.set(ScenePro::getStatus, -2).eq(ScenePro::getNum, projectNum);
|