catcher.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. //
  2. // Created by huli on 2021/3/2.
  3. //
  4. #include "catcher.h"
  5. #include "dispatch_manager.h"
  6. Catcher::Catcher()
  7. {
  8. m_request_x = 0; //机器人坐标x轴,
  9. m_request_y = 0; //机器人坐标y轴,
  10. m_request_b = 0; //机器人坐标b轴, 旋转范围80~280
  11. m_request_z = 0; //机器人坐标z轴,
  12. m_request_space_id = 0; //机器人空间位置的id.
  13. m_request_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  14. m_request_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  15. m_request_wheelbase = 0; //机器人抓车杆前后轮距.
  16. m_request_clamp_motion = E_CLAMP_NO_ACTION; //机器人夹车杆. 0=无动作,1=夹紧,2=松开
  17. m_respons_status = RESPONS_WORKING; //指令完成状态, 机器人答复指令, 返回任务完成的情况
  18. m_respons_x = 0; //机器人坐标x轴,
  19. m_respons_y = 0; //机器人坐标y轴,
  20. m_respons_b = 0; //机器人坐标b轴, 旋转范围80~280
  21. m_respons_z = 0; //机器人坐标z轴,
  22. m_respons_space_id = 0; //机器人空间位置的id.
  23. m_respons_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  24. m_respons_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  25. m_respons_wheelbase = 0; //机器人抓车杆前后轮距.
  26. m_respons_clamp_motion = E_CLAMP_NO_ACTION; //机器人夹车杆. 0=无动作,1=夹紧,2=松开
  27. m_status_updata_time = std::chrono::system_clock::now();
  28. m_last_heartbeat = 0; //上一次的心跳
  29. m_actual_device_status = HARDWARE_DEVICE_UNKNOWN; //机器人的硬件设备状态
  30. m_actual_load_status = LOAD_UNKNOWN; //机器人的负载状态, 小跑车上面是否有车.
  31. m_actual_x = 0; //机器人坐标x轴,
  32. m_actual_y = 0; //机器人坐标y轴,
  33. m_actual_b = 0; //机器人坐标b轴, 旋转范围80~280
  34. m_actual_z = 0; //机器人坐标z轴,
  35. m_actual_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  36. m_actual_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  37. m_actual_clamp_motion1 = E_CLAMP_NO_ACTION; //小跑车夹车杆. 0=无动作,1=夹紧,2=松开
  38. m_actual_clamp_motion2 = E_CLAMP_NO_ACTION; //小跑车夹车杆. 0=无动作,1=夹紧,2=松开
  39. m_actual_clamp_motion3 = E_CLAMP_NO_ACTION; //小跑车夹车杆. 0=无动作,1=夹紧,2=松开
  40. m_actual_clamp_motion4 = E_CLAMP_NO_ACTION; //小跑车夹车杆. 0=无动作,1=夹紧,2=松开
  41. memset(m_actual_error_code, 0, 50); //搬运器设备的报警信息位
  42. memset(m_actual_warning_code, 0, 50); //升降机设备的报警信息位
  43. m_catcher_direction = CATCHER_DIRECTION_UNKNOW;
  44. m_actual_coordinates_id = 0;
  45. m_actual_coordinates_rows = 0;
  46. m_actual_coordinates_columns = 0;
  47. }
  48. Catcher::~Catcher()
  49. {
  50. }
  51. //检查任务类型, 子类必须重载, 用来检查输入的任务是否为子类所需的.
  52. Error_manager Catcher::check_task_type(std::shared_ptr<Task_Base> p_task)
  53. {
  54. //检查任务类型,
  55. if (p_task->get_task_type() != Task_Base::Task_type::CATCHER_TASK)
  56. {
  57. return Error_manager(Error_code::CATCHER_TASK_TYPE_ERROR, Error_level::MINOR_ERROR,
  58. "Catcher::check_task_type get_task_type() != CATCHER_TASK ");
  59. }
  60. return Error_code::SUCCESS;
  61. }
  62. //获取硬件设备的状态, 必须子类继承
  63. Catcher::Hardware_device_status Catcher::get_actual_device_status()
  64. {
  65. return m_actual_device_status;
  66. }
  67. std::string Catcher::get_current_command_key()
  68. {
  69. return (m_request_key + " +++ " + m_respons_key);
  70. }
  71. //把任务单写入到内存中, 子类必须重载
  72. Error_manager Catcher::write_task_to_memory(std::shared_ptr<Task_Base> p_task)
  73. {
  74. //检查任务类型,
  75. if (p_task->get_task_type() != Task_Base::Task_type::CATCHER_TASK)
  76. {
  77. return Error_manager(Error_code::CATCHER_TASK_TYPE_ERROR, Error_level::MINOR_ERROR,
  78. "Catcher::check_task_type get_task_type() != CATCHER_TASK ");
  79. }
  80. else
  81. {
  82. Catcher_task* tp_catcher_task = (Catcher_task*)p_task.get();
  83. std::unique_lock<std::mutex> t_lock1(tp_catcher_task->m_lock);
  84. m_request_key = tp_catcher_task->m_request_key;
  85. m_request_x = tp_catcher_task->m_request_x;
  86. m_request_y = tp_catcher_task->m_request_y;
  87. m_request_b = tp_catcher_task->m_request_b;
  88. m_request_z = tp_catcher_task->m_request_z;
  89. m_request_space_id = tp_catcher_task->m_request_space_id;
  90. m_request_d1 = tp_catcher_task->m_request_d1;
  91. m_request_d2 = tp_catcher_task->m_request_d2;
  92. m_request_wheelbase = tp_catcher_task->m_request_wheelbase;
  93. m_request_clamp_motion = (Dispatch_device_base::Clamp_motion)tp_catcher_task->m_request_clamp_motion;
  94. return Error_code::SUCCESS;
  95. }
  96. return Error_code::SUCCESS;
  97. }
  98. //更新设备底层通信数据, 子类必须重载
  99. Error_manager Catcher::update_device_communication()
  100. {
  101. std::unique_lock<std::mutex> t_lock1(Dispatch_communication::get_instance_references().m_data_lock);
  102. //请求消息, 调度->plc
  103. Dispatch_communication::Catcher_request_from_dispatch_to_plc_for_data * tp_catcher_request_from_dispatch_to_plc_for_data =
  104. & Dispatch_communication::get_instance_references().m_catcher_request_from_dispatch_to_plc_for_data[m_device_id];
  105. Dispatch_communication::Catcher_request_from_dispatch_to_plc_for_key * tp_catcher_request_from_dispatch_to_plc_for_key =
  106. & Dispatch_communication::get_instance_references().m_catcher_request_from_dispatch_to_plc_for_key[m_device_id];
  107. memset(tp_catcher_request_from_dispatch_to_plc_for_key->m_request_key, 0, 50);
  108. int t_size = m_request_key.size()<=50 ? m_request_key.size() : 50 ;
  109. memcpy(tp_catcher_request_from_dispatch_to_plc_for_key->m_request_key, m_request_key.c_str(), t_size);
  110. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_x = m_request_x;
  111. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_y = m_request_y;
  112. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_b = m_request_b;
  113. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_z = m_request_z;
  114. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_clamp_motion = m_request_clamp_motion;
  115. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_wheelbase = m_request_wheelbase;
  116. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_d1 = m_request_d1;
  117. tp_catcher_request_from_dispatch_to_plc_for_data->m_request_d2 = m_request_d2;
  118. //答复消息, plc->调度
  119. Dispatch_communication::Catcher_response_from_plc_to_dispatch * tp_catcher_response_from_plc_to_dispatch =
  120. & Dispatch_communication::get_instance_references().m_catcher_response_from_plc_to_dispatch[m_device_id];
  121. m_respons_key = (char*) tp_catcher_response_from_plc_to_dispatch->m_respons_key;
  122. m_respons_status = (Dispatch_device_base::Respons_status)tp_catcher_response_from_plc_to_dispatch->m_respons_status;
  123. m_respons_x = tp_catcher_response_from_plc_to_dispatch->m_respons_x;
  124. m_respons_y = tp_catcher_response_from_plc_to_dispatch->m_respons_y;
  125. m_respons_b = tp_catcher_response_from_plc_to_dispatch->m_respons_b;
  126. m_respons_z = tp_catcher_response_from_plc_to_dispatch->m_respons_z;
  127. m_respons_clamp_motion = (Dispatch_device_base::Clamp_motion)tp_catcher_response_from_plc_to_dispatch->m_respons_clamp_motion;
  128. m_respons_wheelbase = tp_catcher_response_from_plc_to_dispatch->m_respons_wheelbase;
  129. m_respons_d1 = tp_catcher_response_from_plc_to_dispatch->m_respons_d1;
  130. m_respons_d2 = tp_catcher_response_from_plc_to_dispatch->m_respons_d2;
  131. //状态消息, plc->调度
  132. Dispatch_communication::Catcher_status_from_plc_to_dispatch *tp_catcher_status_from_plc_to_dispatch =
  133. & Dispatch_communication::get_instance_references().m_catcher_status_from_plc_to_dispatch[m_device_id];
  134. //设备异常 //注注注注注注注注意了, ==的优先级比&要高.
  135. if ( (tp_catcher_status_from_plc_to_dispatch->m_safe_status & 0x02) == 0 )
  136. {
  137. m_actual_device_status = Dispatch_device_base::HARDWARE_DEVICE_EMERGENCY_STOP;
  138. m_dispatch_device_status = Dispatch_device_base::DISPATCH_DEVICE_FAULT;
  139. }
  140. else if ( (tp_catcher_status_from_plc_to_dispatch->m_safe_status & 0x01) == 0 )
  141. {
  142. m_actual_device_status = Dispatch_device_base::HARDWARE_DEVICE_FAULT;
  143. m_dispatch_device_status = Dispatch_device_base::DISPATCH_DEVICE_FAULT;
  144. }
  145. else if ( (tp_catcher_status_from_plc_to_dispatch->m_safe_status & 0x08) == 0 )
  146. {
  147. m_actual_device_status = Dispatch_device_base::HARDWARE_DEVICE_COLLISION;
  148. m_dispatch_device_status = Dispatch_device_base::DISPATCH_DEVICE_FAULT;
  149. }
  150. //正常状态
  151. else
  152. {
  153. if (tp_catcher_status_from_plc_to_dispatch->m_work_status == 1)
  154. {
  155. m_actual_device_status = Dispatch_device_base::HARDWARE_DEVICE_WORKING;
  156. }
  157. else if(tp_catcher_status_from_plc_to_dispatch->m_work_status == 2)
  158. {
  159. m_actual_device_status = Dispatch_device_base::HARDWARE_DEVICE_READY;
  160. }
  161. else if(tp_catcher_status_from_plc_to_dispatch->m_work_status == 0)
  162. {
  163. m_actual_device_status = Dispatch_device_base::HARDWARE_DEVICE_UNKNOWN;
  164. }
  165. //故障恢复之后 E_FAULT ->> E_THREE_LEVEL_WORK
  166. if ( m_dispatch_device_status == Dispatch_device_base::DISPATCH_DEVICE_FAULT )
  167. {
  168. m_dispatch_device_status = Dispatch_device_base::DISPATCH_DEVICE_THREE_LEVEL_WORK;
  169. }
  170. //else 流程状态维持不变
  171. }
  172. m_actual_load_status = (Dispatch_device_base::Load_status)tp_catcher_status_from_plc_to_dispatch->m_actual_load_status;
  173. m_actual_x = tp_catcher_status_from_plc_to_dispatch->m_actual_x;
  174. m_actual_y = tp_catcher_status_from_plc_to_dispatch->m_actual_y;
  175. m_actual_b = tp_catcher_status_from_plc_to_dispatch->m_actual_b;
  176. m_actual_z = tp_catcher_status_from_plc_to_dispatch->m_actual_z;
  177. m_actual_d1 = tp_catcher_status_from_plc_to_dispatch->m_actual_d1;
  178. m_actual_d2 = tp_catcher_status_from_plc_to_dispatch->m_actual_d2;
  179. m_actual_clamp_motion1 = (Dispatch_device_base::Clamp_motion)tp_catcher_status_from_plc_to_dispatch->m_actual_clamp_motion1;
  180. m_actual_clamp_motion2 = (Dispatch_device_base::Clamp_motion)tp_catcher_status_from_plc_to_dispatch->m_actual_clamp_motion2;
  181. m_actual_clamp_motion3 = (Dispatch_device_base::Clamp_motion)tp_catcher_status_from_plc_to_dispatch->m_actual_clamp_motion3;
  182. m_actual_clamp_motion4 = (Dispatch_device_base::Clamp_motion)tp_catcher_status_from_plc_to_dispatch->m_actual_clamp_motion4;
  183. memcpy(m_actual_error_code, tp_catcher_status_from_plc_to_dispatch->m_actual_error_code, 50);
  184. memcpy(m_actual_warning_code, tp_catcher_status_from_plc_to_dispatch->m_actual_warning_code, 50);
  185. m_actual_error_description = (char*)(tp_catcher_status_from_plc_to_dispatch->m_actual_error_description-2);
  186. update_actual_coordinates_id();
  187. //机器手朝向
  188. if ( m_actual_b >= CATCHER_DIRECTION_POSITIVE_MIN && m_actual_b <= CATCHER_DIRECTION_POSITIVE_MAX )
  189. {
  190. m_catcher_direction = CATCHER_DIRECTION_POSITIVE;
  191. }
  192. else if ( m_actual_b >= CATCHER_DIRECTION_NEGATIVE_MIN && m_actual_b <= CATCHER_DIRECTION_NEGATIVE_MAX )
  193. {
  194. m_catcher_direction = CATCHER_DIRECTION_NEGATIVE;
  195. }
  196. else
  197. {
  198. m_catcher_direction = CATCHER_DIRECTION_UNKNOW;
  199. }
  200. //通过心跳帧来判断通信是否正常
  201. if ( m_last_heartbeat != tp_catcher_status_from_plc_to_dispatch->m_heartbeat )
  202. {
  203. m_last_heartbeat = tp_catcher_status_from_plc_to_dispatch->m_heartbeat;
  204. m_status_updata_time = std::chrono::system_clock::now();
  205. //重连之后,搬运器状态 E_DISCONNECT ->> E_THREE_LEVEL_WORK
  206. if ( m_dispatch_device_status == Dispatch_device_base::DISPATCH_DEVICE_DISCONNECT )
  207. {
  208. m_dispatch_device_status = Dispatch_device_base::DISPATCH_DEVICE_THREE_LEVEL_WORK;
  209. }
  210. }
  211. else if(std::chrono::system_clock::now() - m_status_updata_time > std::chrono::milliseconds(COMMUNICATION_OVER_TIME_MS))
  212. {
  213. m_dispatch_device_status = Dispatch_device_base::DISPATCH_DEVICE_DISCONNECT;
  214. }
  215. //else 继续等待,直到消息刷新或者超时.
  216. return Error_code::SUCCESS;
  217. }
  218. //从内存中读数据到任务单, 子类必须重载
  219. Error_manager Catcher::check_and_read_memory_to_task(std::shared_ptr<Task_Base> p_task)
  220. {
  221. // std::cout << " huli test :::: " << " ((((((((((((((((((((((((((1111111111111 = " << 111 << std::endl;
  222. // std::cout << " huli test :::: " << " m_request_key = " << m_request_key << std::endl;
  223. // std::cout << " huli test :::: " << " m_respons_key = " << m_respons_key << std::endl;
  224. // std::cout << " huli test :::: " << " m_respons_status = " << m_respons_status << std::endl;
  225. // std::cout << " huli test :::: " << " ))))))))))))))))))))))))))))2222222222 = " << 222 << std::endl;
  226. Dispatch_communication::get_instance_references().communication_start();
  227. //检查任务类型,
  228. if (p_task->get_task_type() != Task_Base::Task_type::CATCHER_TASK)
  229. {
  230. return Error_manager(Error_code::CATCHER_TASK_TYPE_ERROR, Error_level::MINOR_ERROR,
  231. "Catcher::check_task_type get_task_type() != CATCHER_TASK ");
  232. }
  233. else
  234. {
  235. if ( m_respons_key == m_request_key && m_respons_status != RESPONS_WORKING )
  236. {
  237. Catcher_task* tp_catcher_task = (Catcher_task*)p_task.get();
  238. std::unique_lock<std::mutex> t_lock1(tp_catcher_task->m_lock);
  239. tp_catcher_task->m_respons_key = m_respons_key;
  240. tp_catcher_task->m_respons_status = (Catcher_task::Respons_status)m_respons_status;
  241. tp_catcher_task->m_respons_x = m_respons_x;
  242. tp_catcher_task->m_respons_y = m_respons_y;
  243. tp_catcher_task->m_respons_b = m_respons_b;
  244. tp_catcher_task->m_respons_z = m_respons_z;
  245. tp_catcher_task->m_respons_space_id = m_respons_space_id;
  246. tp_catcher_task->m_respons_d1 = m_respons_d1;
  247. tp_catcher_task->m_respons_d2 = m_respons_d2;
  248. tp_catcher_task->m_respons_wheelbase = m_respons_wheelbase;
  249. tp_catcher_task->m_respons_clamp_motion = (Catcher_task::Clamp_motion)m_respons_clamp_motion;
  250. //如果故障,则添加错误码
  251. if ( m_respons_status == RESPONS_MINOR_ERROR || m_respons_status == RESPONS_CRITICAL_ERROR )
  252. {
  253. //添加错误码
  254. Error_manager t_error(CATCHER_RESPONS_ERROR, MINOR_ERROR, "m_respons_status is error");
  255. tp_catcher_task->set_task_error_manager(t_error);
  256. }
  257. /*
  258. std::cout << " huli test :::: " << " [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ 111111111111111111111111 ]]]]]]]]]]]]]]]]]]]]]]]]]]]] = " << 111 << std::endl;
  259. std::cout << " huli test :::: " << " m_request_key = " << m_request_key << std::endl;
  260. std::cout << " huli test :::: " << " m_request_x = " << m_request_x << std::endl;
  261. std::cout << " huli test :::: " << " m_request_y = " << m_request_y << std::endl;
  262. std::cout << " huli test :::: " << " m_request_b = " << m_request_b << std::endl;
  263. std::cout << " huli test :::: " << " m_request_z = " << m_request_z << std::endl;
  264. std::cout << " huli test :::: " << " m_request_clamp_motion = " << m_request_clamp_motion << std::endl;
  265. std::cout << " huli test :::: " << " m_request_wheelbase = " << m_request_wheelbase << std::endl;
  266. std::cout << " huli test :::: " << " m_request_d1 = " << m_request_d1 << std::endl;
  267. std::cout << " huli test :::: " << " m_request_d2 = " << m_request_d2 << std::endl;
  268. std::cout << " huli test :::: " << " m_respons_key = " << m_respons_key << std::endl;
  269. std::cout << " huli test :::: " << " m_respons_status = " << m_respons_status << std::endl;
  270. std::cout << " huli test :::: " << " m_respons_x = " << m_respons_x << std::endl;
  271. std::cout << " huli test :::: " << " m_respons_y = " << m_respons_y << std::endl;
  272. std::cout << " huli test :::: " << " m_respons_b = " << m_respons_b << std::endl;
  273. std::cout << " huli test :::: " << " m_respons_z = " << m_respons_z << std::endl;
  274. std::cout << " huli test :::: " << " m_respons_clamp_motion = " << m_respons_clamp_motion << std::endl;
  275. std::cout << " huli test :::: " << " m_respons_wheelbase = " << m_respons_wheelbase << std::endl;
  276. std::cout << " huli test :::: " << " m_respons_d1 = " << m_respons_d1 << std::endl;
  277. std::cout << " huli test :::: " << " m_respons_d2 = " << m_respons_d2 << std::endl;
  278. std::cout << " huli test :::: " << " m_actual_x = " << m_actual_x << std::endl;
  279. std::cout << " huli test :::: " << " m_actual_y = " << m_actual_y << std::endl;
  280. std::cout << " huli test :::: " << " m_actual_b = " << m_actual_b << std::endl;
  281. std::cout << " huli test :::: " << " m_actual_z = " << m_actual_z << std::endl;
  282. std::cout << " huli test :::: " << " m_actual_d1 = " << m_actual_d1 << std::endl;
  283. std::cout << " huli test :::: " << " m_actual_d2 = " << m_actual_d2 << std::endl;
  284. std::cout << " huli test :::: " << " m_actual_clamp_motion1 = " << m_actual_clamp_motion1 << std::endl;
  285. std::cout << " huli test :::: " << " [[[[[[[[[[[[[[[[[[[[[[[[[[[[ 2222222222222222222222222222222222222222 ]]]]]]]]]]]]]]]]]]]]]]]]]]] = " << 222 << std::endl;
  286. */
  287. return Error_code::SUCCESS;
  288. }
  289. //返回没有收到数据
  290. else
  291. {
  292. return Error_code::NODATA;
  293. }
  294. }
  295. return Error_code::SUCCESS;
  296. }
  297. //取消下发的指令
  298. Error_manager Catcher::cancel_command()
  299. {
  300. //以后再写 need programe
  301. //目前调度和plc的通信指令做的很简单,没有暂停和急停 复位等操作.
  302. //这里先空着,以后再写.
  303. //调度模块单方面销毁任务, 不管底层plc的执行情况, 也不去告知plc任务取消.
  304. return Error_code::SUCCESS;
  305. }
  306. //更新真实 空间位置的id.
  307. Error_manager Catcher::update_actual_coordinates_id()
  308. {
  309. Dispatch_coordinates * tp_dispatch_coordinates = Dispatch_coordinates::get_instance_pointer();
  310. float t_distance_min = 999999;
  311. float t_distance_current = 0;
  312. int t_index_min = 0;
  313. //找出最近的坐标点
  314. for (auto iter = tp_dispatch_coordinates->m_packspace_coordinates_map.begin(); iter != tp_dispatch_coordinates->m_packspace_coordinates_map.end(); ++iter)
  315. {
  316. //只算x轴和z轴
  317. t_distance_current = (m_actual_x - iter->second.x)*(m_actual_x - iter->second.x) + (m_actual_z - iter->second.z)*(m_actual_z - iter->second.z);
  318. if ( t_distance_current < t_distance_min )
  319. {
  320. t_distance_min = t_distance_current;
  321. t_index_min = iter->first;
  322. }
  323. }
  324. m_actual_coordinates_id = t_index_min;
  325. //更新空间锁, 只是 覆盖写入加锁.
  326. if ( m_actual_coordinates_id != 0 )
  327. {
  328. m_actual_coordinates_rows = (m_actual_coordinates_id-1) / Dispatch_coordinates::get_instance_references().m_space_lock_columns;
  329. m_actual_coordinates_columns = (m_actual_coordinates_id-1) % Dispatch_coordinates::get_instance_references().m_space_lock_columns;
  330. Dispatch_coordinates::get_instance_references().set_space_lock_for_catcher(m_actual_coordinates_id, m_device_id);
  331. //保留3 4楼的空间锁
  332. Dispatch_coordinates::get_instance_references().catcher_3rd_4st_floor_space_lock(m_actual_coordinates_columns, m_device_id);
  333. }
  334. return Error_code::SUCCESS;
  335. }