Commit d3b38e63 authored by wanghao's avatar wanghao

1 调试

parent 8dcea44a
...@@ -95,6 +95,7 @@ public class RobotArmCommandServiceImpl implements IRobotArmCommandService ...@@ -95,6 +95,7 @@ public class RobotArmCommandServiceImpl implements IRobotArmCommandService
// sendCommand(loadingCommands.get(0), "LOAD"); // sendCommand(loadingCommands.get(0), "LOAD");
// return; // return;
// } // }
log.info("开始处理上料指令: {}", loadingCommands.get(0));
sendCommand(loadingCommands.get(0), "LOAD"); sendCommand(loadingCommands.get(0), "LOAD");
} }
...@@ -122,6 +123,9 @@ public class RobotArmCommandServiceImpl implements IRobotArmCommandService ...@@ -122,6 +123,9 @@ public class RobotArmCommandServiceImpl implements IRobotArmCommandService
// 发送UDP指令 // 发送UDP指令
SocketAddress address = getRobotAddress(); SocketAddress address = getRobotAddress();
log.info("开始发送UDP指令了啊,可不能为空: {}", command.getCommand());
udpCommandSender.sendCommandWithId( udpCommandSender.sendCommandWithId(
address, address,
command.getCommand() command.getCommand()
......
...@@ -16,7 +16,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -16,7 +16,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectRobotArmCommandVo"> <sql id="selectRobotArmCommandVo">
select f_robot_arm_command_id, f_tray_code, f_storey_code, f_type, f_status, f_start_execution_time, f_end_execution_time, f_create_time, f_command from t_robot_arm_command select f_robot_arm_command_id,
f_tray_code,
f_storey_code,
f_type,
f_status,
f_start_execution_time,
f_end_execution_time,
f_create_time,
f_command
from t_robot_arm_command
</sql> </sql>
<select id="findByType" parameterType="string" resultMap="RobotArmCommandResult"> <select id="findByType" parameterType="string" resultMap="RobotArmCommandResult">
......
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