| | |
| | | @Component("mapService") |
| | | public class MapService { |
| | | |
| | | private final static int[][] DIRECTIONS = {{0,1},{0,-1},{-1,0},{1,0}}; |
| | | private final static int[][] DIRECTIONS = {{0, 1}, {0, -1}, {-1, 0}, {1, 0}}; |
| | | |
| | | @Value("${floyd.enable}") |
| | | private Boolean floydEnable; |
| | |
| | | return Double.parseDouble(sta.getAngle()); |
| | | } |
| | | |
| | | public AgvDirectionType calculateAgvWorkDirectionByStation(Sta sta, Code code) { |
| | | return AgvDirectionType.FORWARD; |
| | | public Double calculateAgvWorkDirectionByStation(Double staWorkDirection, Double lastDirection) { |
| | | return Math.abs(staWorkDirection - lastDirection) + 90.0D; |
| | | } |
| | | |
| | | public double calculateDistance(double x1, double y1, double x2, double y2) { |