| | |
| | | `memo` VARCHAR(255) DEFAULT NULL COMMENT '备注', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
| | | |
| | | update man_loc set comp_direct =2 where comp_direct =0 |
| | |
| | | |
| | | LEFT(1), |
| | | RIGHT(2), |
| | | FORWARD(0), |
| | | FORWARD(3), |
| | | ; |
| | | |
| | | public int val; |
| | |
| | | this.val = val; |
| | | } |
| | | |
| | | public static AgvDirectionType fromVal(int val) { |
| | | for (AgvDirectionType type : AgvDirectionType.values()) { |
| | | if (type.val == val) { |
| | | return type; |
| | | } |
| | | } |
| | | throw new IllegalArgumentException("Invalid AgvDirectionType: " + val); |
| | | } |
| | | |
| | | } |
| | |
| | | // 坐标货架阈值 todo:luxiaotao |
| | | public AgvDirectionType calculateAgvWorkDirectionByShelf(Loc loc, Code code) { |
| | | Integer compDirect = loc.getCompDirect(); |
| | | AgvDirectionType agvDirectionType = null; |
| | | if (compDirect == 0) { |
| | | agvDirectionType = AgvDirectionType.RIGHT; |
| | | } |
| | | if (compDirect == 1) { |
| | | agvDirectionType = AgvDirectionType.LEFT; |
| | | } |
| | | return agvDirectionType; |
| | | return AgvDirectionType.fromVal(compDirect); |
| | | } |
| | | |
| | | public Double getStaAngle(Sta sta, Double workDirection) { |
| | |
| | | private Long code; |
| | | |
| | | /** |
| | | * 比码方向阈 1: 大于 0 小于 |
| | | * 比码方向阈 |
| | | */ |
| | | @ApiModelProperty(value= "比码方向阈 1: 大于 0 小于") |
| | | @ApiModelProperty(value= "比码方向阈") |
| | | private Integer compDirect; |
| | | |
| | | /** |