Bläddra i källkod

修改obj场景构建逻辑

tianboguang 2 år sedan
förälder
incheckning
151f26546c

+ 10 - 10
src/main/java/com/fdkankan/contro/mq/service/impl/BuildObjServiceImpl.java

@@ -127,16 +127,16 @@ public class BuildObjServiceImpl implements IBuildSceneService {
     }
 
     @Override
-    public void downLoadSource(BuildSceneCallMessage buildSceneMqMessage,String path) throws Exception{
-        FileUtils.copyFile(path + "/caches/reconstruction/final.bin", path + "/caches/reconstruction/final.bin", true);
-        FileUtils.copyFile(path + "/caches/reconstruction/chunk.json", path + "/caches/reconstruction/chunk.json", true);
-        FileUtils.copyDirectiory(path + "/caches/images", path + "/caches/images");
-
-        FileUtils.copyDirectiory(path + "/caches/depthmap_csc", path + "/caches/depthmap_csc");
-        FileUtils.copyDirectiory(path + "/caches/depthmap_vis", path + "/caches/depthmap_vis");
-        FileUtils.copyDirectiory(path + "/caches/depthmap", path + "/caches/depthmap");
-        FileUtils.copyFile(path + "/caches/panorama.json", path + "/caches/panorama.json", true);
-        FileUtils.copyFile(path + "/results/laserData/laser.ply", path + "/results/laserData/laser.ply", true);
+    public void downLoadSource(BuildSceneCallMessage message,String path) throws Exception{
+        FileUtils.copyFile(message.getDataSource() + "/caches/reconstruction/final.bin", path + "/caches/reconstruction/final.bin", true);
+        FileUtils.copyFile(message.getDataSource() + "/caches/reconstruction/chunk.json", path + "/caches/reconstruction/chunk.json", true);
+        FileUtils.copyDirectiory(message.getDataSource() + "/caches/images", path + "/caches/images");
+
+        FileUtils.copyDirectiory(message.getDataSource() + "/caches/depthmap_csc", path + "/caches/depthmap_csc");
+        FileUtils.copyDirectiory(message.getDataSource() + "/caches/depthmap_vis", path + "/caches/depthmap_vis");
+        FileUtils.copyDirectiory(message.getDataSource() + "/caches/depthmap", path + "/caches/depthmap");
+        FileUtils.copyFile(message.getDataSource() + "/caches/panorama.json", path + "/caches/panorama.json", true);
+        FileUtils.copyFile(message.getDataSource() + "/results/laserData/laser.ply", path + "/results/laserData/laser.ply", true);
     }
 
     @Override