Commit a0364038 authored by wanghao's avatar wanghao

1 扫托盘 上料 测试

parent 025b3b12
...@@ -140,12 +140,16 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP ...@@ -140,12 +140,16 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
// 处理指令完成 // 处理指令完成
if (status.isFullyIdle()) { if (status.isFullyIdle()) {
log.info("status.isFullyIdle 了 吗? ");
CommandExecution execution = currentCommands.get(sender); CommandExecution execution = currentCommands.get(sender);
log.info("currentCommands.get(sender) = " + execution);
if (execution != null) { if (execution != null) {
robotArmCommandService.completeCommand(execution.commandId); robotArmCommandService.completeCommand(execution.commandId);
currentCommands.remove(sender); currentCommands.remove(sender);
log.info("指令完成: {}", execution.commandId); log.info("指令完成: {}", execution.commandId);
} }
} else {
log.info("status.isFullyIdle() = false");
} }
// 记录详细状态 // 记录详细状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment