| | |
| | | > avoidDistance - 50) {//无需避让 |
| | | return true; |
| | | } else { |
| | | |
| | | RgvThread rgvThreadOther = (RgvThread) SlaveConnection.get(SlaveType.Rgv, slave.getOtherId()); |
| | | TaskProtocolCache taskProtocolCacheOther = rgvThreadOther.getTaskProtocolCache(); |
| | | if (taskProtocolCacheOther.isNowPosRun(rgvProtocolOther.getRgvPos())){ |
| | | return false; |
| | | } |
| | | long avoid = targetPosition + rgvProtocol.getCarBodyKunPeng() + avoidDistance + rgvProtocolOther.getCarBodyJiaoMing(); |
| | | if (!new TrackRangeUtils().avoidRange(avoid, avoidRange[0])) { |
| | | log.error("RGV行走超出范围!!! ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort()); |
| | |
| | | > avoidDistance - 50) {//无需避让 |
| | | return true; |
| | | } else { |
| | | RgvThread rgvThreadOther = (RgvThread) SlaveConnection.get(SlaveType.Rgv, slave.getOtherId()); |
| | | TaskProtocolCache taskProtocolCacheOther = rgvThreadOther.getTaskProtocolCache(); |
| | | if (taskProtocolCacheOther.isNowPosRun(rgvProtocolOther.getRgvPos())){ |
| | | return false; |
| | | } |
| | | long avoid = targetPosition - rgvProtocol.getCarBodyJiaoMing() - avoidDistance - rgvProtocolOther.getCarBodyKunPeng(); |
| | | if (!new TrackRangeUtils().avoidRange(avoid, avoidRange[1])) { |
| | | log.error("RGV行走超出范围!!! ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort()); |