|
@@ -298,13 +298,10 @@ public class RabbitMqListener {
|
|
|
String imgPath = workDir + "final_freespace.png";
|
|
|
String keyPath = path + "/results/laserData/cover/final_freespace.png";
|
|
|
String floorKeyPath = path + "/results/floorplan/floor_0.png";
|
|
|
- if(FileUtil.exist(floorKeyPath)){
|
|
|
- FileUtil.copyContent(new File(floorKeyPath), new File(imgPath), true);
|
|
|
- }else if(FileUtil.exist(keyPath)){
|
|
|
- FileUtil.copyContent(new File(keyPath), new File(imgPath), true);
|
|
|
- }else{
|
|
|
+ if(!FileUtil.exist(floorKeyPath)){
|
|
|
return false;
|
|
|
}
|
|
|
+ FileUtil.copyContent(new File(floorKeyPath), new File(imgPath), true);
|
|
|
String cmd = CmdConstant.LAYOUT_DETECT;
|
|
|
cmd = cmd.replace("@in", imgPath);
|
|
|
cmd = cmd.replace("@out", detectPath);
|