Compare commits
5 Commits
2c186a6ff4
...
fbdb10ace7
Author | SHA1 | Date | |
---|---|---|---|
|
fbdb10ace7 | ||
|
05fb4a348a | ||
|
771351b12f | ||
|
7000c02653 | ||
|
2013d5b815 |
@ -1369,6 +1369,7 @@ public class AsynRunTaskService extends BaseService {
|
|||||||
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, startPosition, targetPosition, rgv2CurrPosition);
|
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, startPosition, targetPosition, rgv2CurrPosition);
|
||||||
if (conflictBoolean){
|
if (conflictBoolean){
|
||||||
Integer status = moveRgv(2, currTaskId, 2,0);
|
Integer status = moveRgv(2, currTaskId, 2,0);
|
||||||
|
logger.info(status.toString());
|
||||||
if (status!=1){
|
if (status!=1){
|
||||||
logger.info("===执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败===");
|
logger.info("===执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败===");
|
||||||
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败");
|
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败");
|
||||||
@ -1392,6 +1393,7 @@ public class AsynRunTaskService extends BaseService {
|
|||||||
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, currTask.getStartPosition(), currTask.getTargetPosition(), rgv1CurrPosition);
|
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, currTask.getStartPosition(), currTask.getTargetPosition(), rgv1CurrPosition);
|
||||||
if (conflictBoolean){
|
if (conflictBoolean){
|
||||||
Integer status = moveRgv(1, currTaskId, 39,0);
|
Integer status = moveRgv(1, currTaskId, 39,0);
|
||||||
|
logger.info(status.toString());
|
||||||
if (status!=1){
|
if (status!=1){
|
||||||
logger.info("===执行任务:"+currTaskId+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败===");
|
logger.info("===执行任务:"+currTaskId+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败===");
|
||||||
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败");
|
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败");
|
||||||
|
Loading…
Reference in New Issue
Block a user