计算车辆是否冲突起终点bug修改
This commit is contained in:
lgh 2022-08-06 00:15:42 +08:00
parent 40f44f57d9
commit c19066792c

View File

@ -1390,7 +1390,7 @@ public class AsynRunTaskService extends BaseService {
//获取RGV1当前位置
Double rgv1CurrPosition = RGVCurrPosition(1);
//两辆小车是否冲突
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, currTask.getStartPosition(), currTask.getTargetPosition(), rgv1CurrPosition);
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, startPosition, targetPosition, rgv1CurrPosition);
if (conflictBoolean){
Integer status = moveRgv(1, currTaskId, 12,0);
logger.info(status.toString());