| | |
| | | import dikuai.Gecaokuanjisuan; |
| | | import dikuai.Gecaoanquanjuli; |
| | | import bianjie.Bianjieyouhuatoxy; |
| | | import lujing.Lunjingguihua; |
| | | |
| | | import lujing.Qufenxingzhuang; |
| | | import lujing.AoxinglujingNoObstacle; |
| | | import lujing.YixinglujingNoObstacle; |
| | |
| | | YixinglujingNoObstacle.planPath(boundaryCoords, widthMetersStr, safetyDistanceMetersStr); |
| | | plannedPath = formatYixingPathSegments(segments); |
| | | } else { |
| | | // 无法判断地块类型,使用默认方法作为后备 |
| | | JOptionPane.showMessageDialog(this, "无法判断地块类型,使用默认路径生成方法", |
| | | // 无法判断地块类型 |
| | | JOptionPane.showMessageDialog(this, "无法判断地块类型,无法生成路径", |
| | | "提示", JOptionPane.WARNING_MESSAGE); |
| | | String plannerMode = resolvePlannerMode(patternDisplay); |
| | | plannedPath = Lunjingguihua.generatePathFromStrings( |
| | | boundaryCoords, |
| | | obstacleCoords != null ? obstacleCoords : "", |
| | | widthMetersStr, |
| | | safetyDistanceMetersStr, |
| | | plannerMode |
| | | ); |
| | | plannedPath = ""; |
| | | } |
| | | |
| | | if (!isMeaningfulValue(plannedPath)) { |