|
|
@ -41,7 +41,11 @@ public class TrayOutCommand extends BaseCommandHandler { |
|
|
|
if (deviceStateService.getCommandMutexState().get().isTrayOut()) { |
|
|
|
throw new AppException(ResultCode.COMMAND_ALREADY_EXECUTING); |
|
|
|
} |
|
|
|
String targetHeatModuleCodeStr = cmdDTO.getStringParam("heatModuleCode"); |
|
|
|
String targetHeatModuleCodeStr = cmdDTO.getStringParam("heatId"); |
|
|
|
if(targetHeatModuleCodeStr.isEmpty()){ |
|
|
|
log.error("heatModuleCode is empty:"+targetHeatModuleCodeStr); |
|
|
|
throw new AppException(ResultCode.INVALID_PARAMETER); |
|
|
|
} |
|
|
|
HeatModuleCode targetHeatModuleCode = HeatModuleCode.valueOf(targetHeatModuleCodeStr); |
|
|
|
Double doorOpenPosition = devicePositionService.getPosition(DevicePositionCode.doorOpenPosition).getDistance();//获取开门位置 |
|
|
|
Point3D targetHeatModuleTrayClawPoint3D = heatModuleService.getHeatModuleTrayClawPoint3D(targetHeatModuleCode);//获取目标加热模块托盘夹取点 |
|
|
|