|
@ -1957,6 +1957,38 @@ public class AgvServiceImpl implements AgvService { |
|
|
json1.put("location", inst.getNext_point_code() + "INPUT"); |
|
|
json1.put("location", inst.getNext_point_code() + "INPUT"); |
|
|
json1.put("operation_args", operation_args); |
|
|
json1.put("operation_args", operation_args); |
|
|
ja.add(json1); |
|
|
ja.add(json1); |
|
|
|
|
|
}else if (inst.getStart_device_code().equals("3041") && inst.getNext_device_code().equals("4019")) { |
|
|
|
|
|
com.alibaba.fastjson.JSONObject operation_args = new com.alibaba.fastjson.JSONObject(); |
|
|
|
|
|
operation_args.put("increase_spin_angle", 3.14);//弧度值,如3.14
|
|
|
|
|
|
operation_args.put("skill_name", "GoByOdometer"); |
|
|
|
|
|
json1.put("blockId", IdUtil.simpleUUID()); |
|
|
|
|
|
json1.put("location", inst.getNext_point_code() + "INPUT"); |
|
|
|
|
|
json1.put("operation_args", operation_args); |
|
|
|
|
|
ja.add(json1); |
|
|
|
|
|
}else if (inst.getStart_device_code().equals("3042") && inst.getNext_device_code().equals("4010")) { |
|
|
|
|
|
com.alibaba.fastjson.JSONObject operation_args = new com.alibaba.fastjson.JSONObject(); |
|
|
|
|
|
operation_args.put("increase_spin_angle", 3.14);//弧度值,如3.14
|
|
|
|
|
|
operation_args.put("skill_name", "GoByOdometer"); |
|
|
|
|
|
json1.put("blockId", IdUtil.simpleUUID()); |
|
|
|
|
|
json1.put("location", inst.getNext_point_code() + "INPUT"); |
|
|
|
|
|
json1.put("operation_args", operation_args); |
|
|
|
|
|
ja.add(json1); |
|
|
|
|
|
}else if (inst.getStart_device_code().equals("3010") && inst.getNext_device_code().equals("3042")) { |
|
|
|
|
|
com.alibaba.fastjson.JSONObject operation_args = new com.alibaba.fastjson.JSONObject(); |
|
|
|
|
|
operation_args.put("increase_spin_angle", 3.14);//弧度值,如3.14
|
|
|
|
|
|
operation_args.put("skill_name", "GoByOdometer"); |
|
|
|
|
|
json1.put("blockId", IdUtil.simpleUUID()); |
|
|
|
|
|
json1.put("location", inst.getNext_point_code() + "INPUT"); |
|
|
|
|
|
json1.put("operation_args", operation_args); |
|
|
|
|
|
ja.add(json1); |
|
|
|
|
|
}else if (inst.getStart_device_code().equals("3019") && inst.getNext_device_code().equals("3041")) { |
|
|
|
|
|
com.alibaba.fastjson.JSONObject operation_args = new com.alibaba.fastjson.JSONObject(); |
|
|
|
|
|
operation_args.put("increase_spin_angle", 3.14);//弧度值,如3.14
|
|
|
|
|
|
operation_args.put("skill_name", "GoByOdometer"); |
|
|
|
|
|
json1.put("blockId", IdUtil.simpleUUID()); |
|
|
|
|
|
json1.put("location", inst.getNext_point_code() + "INPUT"); |
|
|
|
|
|
json1.put("operation_args", operation_args); |
|
|
|
|
|
ja.add(json1); |
|
|
} |
|
|
} |
|
|
com.alibaba.fastjson.JSONObject jo4 = new com.alibaba.fastjson.JSONObject(); |
|
|
com.alibaba.fastjson.JSONObject jo4 = new com.alibaba.fastjson.JSONObject(); |
|
|
jo4.put("blockId", IdUtil.simpleUUID()); |
|
|
jo4.put("blockId", IdUtil.simpleUUID()); |
|
|