main.cpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. //
  2. // huli test 20200223
  3. //
  4. #include <iostream>
  5. #include "./error_code/error_code.h"
  6. //#include "LogFiles.h"
  7. #include <glog/logging.h>
  8. #include "./communication/communication_socket_base.h"
  9. #include "./tool/thread_pool.h"
  10. #include "./system/system_communication.h"
  11. #include "./system/system_executor.h"
  12. #include "./dispatch/dispatch_manager.h"
  13. #include "./dispatch/dispatch_communication.h"
  14. #include "./tool/common_data.h"
  15. #include <algorithm> // std::for_each
  16. #define LIVOX_NUMBER 2
  17. GOOGLE_GLOG_DLL_DECL void shut_down_logging(const char* data, int size)
  18. {
  19. time_t tt;
  20. time( &tt );
  21. tt = tt + 8*3600; // transform the time zone
  22. tm* t= gmtime( &tt );
  23. char buf[255]={0};
  24. sprintf(buf,"./%d%02d%02d-%02d%02d%02d-dump.txt",
  25. t->tm_year + 1900,
  26. t->tm_mon + 1,
  27. t->tm_mday,
  28. t->tm_hour,
  29. t->tm_min,
  30. t->tm_sec);
  31. FILE* tp_file=fopen(buf,"w");
  32. fprintf(tp_file,data,strlen(data));
  33. fclose(tp_file);
  34. }
  35. #include <chrono>
  36. using namespace std;
  37. void myfunction (int i) { // function:
  38. std::cout << ' ' << i;
  39. }
  40. class AAA
  41. {
  42. public:
  43. int a;
  44. };
  45. class BBB:public AAA
  46. {
  47. public:
  48. int b;
  49. };
  50. class CCC:public AAA
  51. {
  52. public:
  53. int c;
  54. };
  55. int main(int argc,char* argv[])
  56. {
  57. message::Dispatch_plan_request_msg m_dispatch_plan_request_msg; //2调度总规划的请求, 用于启动整个调度算法(调度管理->调度算法)
  58. m_dispatch_plan_request_msg.mutable_base_info()->set_msg_type(message::Message_type::eDispatch_plan_request_msg);
  59. m_dispatch_plan_request_msg.mutable_base_info()->set_timeout_ms(50);
  60. m_dispatch_plan_request_msg.mutable_base_info()->set_sender(message::Communicator::eDispatch_mamager);
  61. m_dispatch_plan_request_msg.mutable_base_info()->set_receiver(message::Communicator::eDispatch_control);
  62. m_dispatch_plan_request_msg.set_command_key("m_command_key");
  63. //
  64. //std::cout << " huli test :::: " << " 1231231231231231 = " << m_dispatch_plan_request_msg.has_dispatch_source() << std::endl;
  65. // m_dispatch_plan_request_msg.set_dispatch_source(50);
  66. // std::cout << " huli test :::: " << " 1231231231231231 = " << m_dispatch_plan_request_msg.has_dispatch_source() << std::endl;
  67. //
  68. // m_dispatch_plan_request_msg.clear_dispatch_source();
  69. // std::cout << " huli test :::: " << " 1231231231231231 = " << m_dispatch_plan_request_msg.has_dispatch_source() << std::endl;
  70. int aaa = m_dispatch_plan_request_msg.dispatch_task_type();
  71. std::cout << " huli test :::: " << " aaa = " << aaa << std::endl;
  72. m_dispatch_plan_request_msg.DebugString();
  73. std::cout << " huli test :::: " << " m_dispatch_plan_request_msg.DebugString() = " << m_dispatch_plan_request_msg.DebugString() << std::endl;
  74. return 0;
  75. const char* logPath = "./";
  76. google::InitGoogleLogging("LidarMeasurement");
  77. google::SetStderrLogging(google::INFO);
  78. google::SetLogDestination(0, logPath);
  79. google::SetLogFilenameExtension("zxlog");
  80. google::InstallFailureSignalHandler();
  81. google::InstallFailureWriter(&shut_down_logging);
  82. FLAGS_colorlogtostderr = true; // Set log color
  83. FLAGS_logbufsecs = 0; // Set log output speed(s)
  84. FLAGS_max_log_size = 1024; // Set max log file size(GB)
  85. FLAGS_stop_logging_if_full_disk = true;
  86. Error_manager t_error;
  87. t_error = Dispatch_communication::get_instance_references().communication_init();
  88. Dispatch_manager::get_instance_references().dispatch_manager_init(0);
  89. std::cout << "Dispatch_manager = " << Dispatch_manager::get_instance_references().get_dispatch_manager_status() << std::endl;
  90. System_executor::get_instance_references().system_executor_init(8);
  91. std::cout << "System_executor = " << System_executor::get_instance_references().get_system_executor_status() << std::endl;
  92. System_communication::get_instance_references().communication_init();
  93. return 0;
  94. // Error_manager t_error;
  95. t_error = Dispatch_communication::get_instance_references().communication_init();
  96. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  97. std::cout << "Dispatch_communication = " << Dispatch_communication::get_instance_references().get_status() << std::endl;
  98. std::this_thread::sleep_for(std::chrono::seconds(2));
  99. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  100. std::cout << "Dispatch_communication = " << Dispatch_communication::get_instance_references().get_status() << std::endl;
  101. std::cout << " ---------------------------------------------------" << std::endl;
  102. std::cout << " ---------------------------------------------------" << std::endl;
  103. /*
  104. Catcher t_catcher;
  105. t_error = t_catcher.dispatch_device_base_init(1);
  106. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  107. std::this_thread::sleep_for(std::chrono::seconds(2));
  108. std::shared_ptr<Task_Base> tp_task_Base1(new Catcher_task);
  109. Catcher_task * tp_catcher_task = (Catcher_task *)tp_task_Base1.get();
  110. tp_catcher_task->task_init(NULL,std::chrono::milliseconds(15000));
  111. tp_catcher_task->m_request_key = "nfddsfgkjvbds";
  112. tp_catcher_task->m_request_x = 500;
  113. tp_catcher_task->m_request_y = 600;
  114. tp_catcher_task->m_request_b = 80;
  115. tp_catcher_task->m_request_z = 700;
  116. tp_catcher_task->m_request_d1 = 355;
  117. tp_catcher_task->m_request_d2 = 455;
  118. tp_catcher_task->m_request_wheelbase = 1255;
  119. tp_catcher_task->m_request_clamp_motion = Catcher_task::E_CLAMP_TIGHT;
  120. t_error = t_catcher.execute_task(tp_task_Base1, Dispatch_device_base::E_ONE_LEVEL);
  121. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  122. std::cout << " ---------------------------------------------------" << std::endl;
  123. char zxczxcxzc1 ;
  124. std::cin >> zxczxcxzc1 ;
  125. while ( 1 )
  126. {
  127. std::cout << " huli test :::: " << " ===================================== " << std::endl;
  128. std::cout << " huli test :::: " << " tp_catcher_task->get_task_statu = " << tp_catcher_task->get_task_statu() << std::endl;
  129. std::cout << " huli test :::: " << " tp_catcher_task->m_respons_status = " << tp_catcher_task->m_respons_status << std::endl;
  130. std::cout << " huli test :::: " << " m_respons_key = " << tp_catcher_task->m_respons_key << std::endl;
  131. std::cout << " huli test :::: " << " m_respons_status = " << tp_catcher_task->m_respons_status << std::endl;
  132. std::cout << " huli test :::: " << " m_respons_x = " << tp_catcher_task->m_respons_x << std::endl;
  133. std::cout << " huli test :::: " << " m_respons_y = " << tp_catcher_task->m_respons_y << std::endl;
  134. std::cout << " huli test :::: " << " m_respons_b = " << tp_catcher_task->m_respons_b << std::endl;
  135. std::cout << " huli test :::: " << " m_respons_z = " << tp_catcher_task->m_respons_z << std::endl;
  136. std::cout << " huli test :::: " << " m_respons_d1 = " << tp_catcher_task->m_respons_d1 << std::endl;
  137. std::cout << " huli test :::: " << " m_respons_d2 = " << tp_catcher_task->m_respons_d2 << std::endl;
  138. std::cout << " huli test :::: " << " m_respons_wheelbase = " << tp_catcher_task->m_respons_wheelbase << std::endl;
  139. std::cout << " huli test :::: " << " m_respons_clamp_motion = " << tp_catcher_task->m_respons_clamp_motion << std::endl;
  140. std::cout << " ---------------------------------------------------" << std::endl;
  141. std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
  142. std::cout << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_catcher.get_dispatch_device_status() << std::endl;
  143. int heat = t_catcher.m_last_heartbeat;
  144. std::cout << " huli test :::: " << " m_last_heartbeat = " << heat << std::endl;
  145. std::cout << " huli test :::: " << " m_actual_device_status = " << t_catcher.m_actual_device_status << std::endl;
  146. std::cout << " huli test :::: " << " m_actual_load_status = " << t_catcher.m_actual_load_status << std::endl;
  147. std::cout << " huli test :::: " << " m_actual_x = " << t_catcher.m_actual_x << std::endl;
  148. std::cout << " huli test :::: " << " m_actual_y = " << t_catcher.m_actual_y << std::endl;
  149. std::cout << " huli test :::: " << " m_actual_b = " << t_catcher.m_actual_b << std::endl;
  150. std::cout << " huli test :::: " << " m_actual_z = " << t_catcher.m_actual_z << std::endl;
  151. std::cout << " huli test :::: " << " m_actual_d1 = " << t_catcher.m_actual_d1 << std::endl;
  152. std::cout << " huli test :::: " << " m_actual_d2 = " << t_catcher.m_actual_d2 << std::endl;
  153. std::cout << " huli test :::: " << " m_actual_clamp_motion1 = " << t_catcher.m_actual_clamp_motion1 << std::endl;
  154. std::cout << " huli test :::: " << " m_actual_clamp_motion2 = " << t_catcher.m_actual_clamp_motion2 << std::endl;
  155. std::cout << " huli test :::: " << " m_actual_clamp_motion3 = " << t_catcher.m_actual_clamp_motion3 << std::endl;
  156. std::cout << " huli test :::: " << " m_actual_clamp_motion4 = " << t_catcher.m_actual_clamp_motion4 << std::endl;
  157. std::cout << " huli test :::: " << " m_actual_error_code = " << std::endl;
  158. for (int i = 0; i < 50; ++i)
  159. {
  160. printf("0x%x ", t_catcher.m_actual_error_code[i]);
  161. }
  162. std::cout << std::endl;
  163. std::cout << " huli test :::: " << " m_actual_warning_code = " << std::endl;
  164. for (int i = 0; i < 50; ++i)
  165. {
  166. printf("0x%x ", t_catcher.m_actual_warning_code[i]);
  167. }
  168. std::cout << std::endl;
  169. std::cout << " huli test :::: " << " m_actual_error_description = " << t_catcher.m_actual_error_description << std::endl;
  170. std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
  171. std::this_thread::sleep_for(std::chrono::milliseconds(1000));
  172. }
  173. */
  174. Carrier t_carrier;
  175. t_error = t_carrier.dispatch_device_base_init(0);
  176. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  177. std::this_thread::sleep_for(std::chrono::seconds(2));
  178. std::shared_ptr<Task_Base> tp_task_Base2(new Carrier_task);
  179. Carrier_task * tp_carrier_task = (Carrier_task *)tp_task_Base2.get();
  180. tp_carrier_task->task_init(NULL,std::chrono::milliseconds(15000));
  181. tp_carrier_task->m_request_key = "fimfyuiyuifjh";
  182. tp_carrier_task->m_request_x = 333;
  183. tp_carrier_task->m_request_y = 444;
  184. tp_carrier_task->m_request_z = 555;
  185. tp_carrier_task->m_request_y1 = 333;
  186. tp_carrier_task->m_request_y2 = 444;
  187. tp_carrier_task->m_request_clamp_motion = Carrier_task::E_CLAMP_LOOSE;
  188. tp_carrier_task->m_request_joint_motion_x = Carrier_task::E_JOINT_HOLD_OUT;
  189. tp_carrier_task->m_request_joint_motion_y = Carrier_task::E_JOINT_HOLD_OUT;
  190. tp_carrier_task->m_request_space_id = 555;
  191. tp_carrier_task->m_request_floor_id = 555;
  192. tp_carrier_task->m_request_wheelbase = 555;
  193. t_error = t_carrier.execute_task(tp_task_Base2, Dispatch_device_base::E_ONE_LEVEL);
  194. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  195. std::cout << " ---------------------------------------------------" << std::endl;
  196. char zxczxcxzc2 ;
  197. std::cin >> zxczxcxzc2 ;
  198. while ( 1 )
  199. {
  200. std::cout << " huli test :::: " << " ===================================== " << std::endl;
  201. std::cout << " huli test :::: " << " tp_carrier_task->get_task_statu = " << tp_carrier_task->get_task_statu() << std::endl;
  202. std::cout << " huli test :::: " << " tp_carrier_task->m_respons_status = " << tp_carrier_task->m_respons_status << std::endl;
  203. std::cout << " huli test :::: " << " m_respons_key = " << tp_carrier_task->m_respons_key << std::endl;
  204. std::cout << " huli test :::: " << " m_respons_status = " << tp_carrier_task->m_respons_status << std::endl;
  205. std::cout << " huli test :::: " << " m_respons_x = " << tp_carrier_task->m_respons_x << std::endl;
  206. std::cout << " huli test :::: " << " m_respons_y = " << tp_carrier_task->m_respons_y << std::endl;
  207. std::cout << " huli test :::: " << " m_respons_z = " << tp_carrier_task->m_respons_z << std::endl;
  208. std::cout << " huli test :::: " << " m_respons_y1 = " << tp_carrier_task->m_respons_y1 << std::endl;
  209. std::cout << " huli test :::: " << " m_respons_y2 = " << tp_carrier_task->m_respons_y2 << std::endl;
  210. std::cout << " huli test :::: " << " m_respons_clamp_motion = " << tp_carrier_task->m_respons_clamp_motion << std::endl;
  211. std::cout << " huli test :::: " << " m_respons_joint_motion_x = " << tp_carrier_task->m_respons_joint_motion_x << std::endl;
  212. std::cout << " huli test :::: " << " m_respons_joint_motion_y = " << tp_carrier_task->m_respons_joint_motion_y << std::endl;
  213. std::cout << " huli test :::: " << " m_respons_space_id = " << tp_carrier_task->m_respons_space_id << std::endl;
  214. std::cout << " huli test :::: " << " m_respons_floor_id = " << tp_carrier_task->m_respons_floor_id << std::endl;
  215. std::cout << " huli test :::: " << " m_respons_wheelbase = " << tp_carrier_task->m_respons_wheelbase << std::endl;
  216. std::cout << " ---------------------------------------------------" << std::endl;
  217. std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
  218. std::cout << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_carrier.get_dispatch_device_status() << std::endl;
  219. int heat = t_carrier.m_last_heartbeat;
  220. std::cout << " huli test :::: " << " m_last_heartbeat = " << heat << std::endl;
  221. std::cout << " huli test :::: " << " m_actual_device_status = " << t_carrier.m_actual_device_status << std::endl;
  222. std::cout << " huli test :::: " << " m_actual_load_status = " << t_carrier.m_actual_load_status << std::endl;
  223. std::cout << " huli test :::: " << " m_actual_x = " << t_carrier.m_actual_x << std::endl;
  224. std::cout << " huli test :::: " << " m_actual_y = " << t_carrier.m_actual_y << std::endl;
  225. std::cout << " huli test :::: " << " m_actual_z = " << t_carrier.m_actual_z << std::endl;
  226. std::cout << " huli test :::: " << " m_actual_y1 = " << t_carrier.m_actual_y1 << std::endl;
  227. std::cout << " huli test :::: " << " m_actual_y2 = " << t_carrier.m_actual_y2 << std::endl;
  228. std::cout << " huli test :::: " << " m_actual_clamp_motion1 = " << t_carrier.m_actual_clamp_motion1 << std::endl;
  229. std::cout << " huli test :::: " << " m_actual_clamp_motion2 = " << t_carrier.m_actual_clamp_motion2 << std::endl;
  230. std::cout << " huli test :::: " << " m_actual_small_sports_car_motion = " << t_carrier.m_actual_small_sports_car_motion << std::endl;
  231. std::cout << " huli test :::: " << " m_actual_joint_motion_x1 = " << t_carrier.m_actual_joint_motion_x1 << std::endl;
  232. std::cout << " huli test :::: " << " m_actual_joint_motion_x2 = " << t_carrier.m_actual_joint_motion_x2 << std::endl;
  233. std::cout << " huli test :::: " << " m_actual_error_code = " << std::endl;
  234. for (int i = 0; i < 50; ++i)
  235. {
  236. printf("0x%x ", t_carrier.m_actual_error_code[i]);
  237. }
  238. std::cout << std::endl;
  239. std::cout << " huli test :::: " << " m_actual_warning_code = " << std::endl;
  240. for (int i = 0; i < 50; ++i)
  241. {
  242. printf("0x%x ", t_carrier.m_actual_warning_code[i]);
  243. }
  244. std::cout << std::endl;
  245. std::cout << " huli test :::: " << " m_actual_error_description = " << t_carrier.m_actual_error_description << std::endl;
  246. std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
  247. std::this_thread::sleep_for(std::chrono::milliseconds(1000));
  248. }
  249. Passageway t_passageway;
  250. t_error = t_passageway.dispatch_device_base_init(1);
  251. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  252. std::this_thread::sleep_for(std::chrono::seconds(2));
  253. std::shared_ptr<Task_Base> tp_task_Base3(new Passageway_task);
  254. Passageway_task * tp_passageway_task = (Passageway_task *)tp_task_Base3.get();
  255. tp_passageway_task->task_init(NULL,std::chrono::milliseconds(15000));
  256. tp_passageway_task->m_request_key = "ABCDEF";
  257. tp_passageway_task->m_request_inside_door_motion = Passageway_task::DOOR_OPEN;
  258. tp_passageway_task->m_request_outside_door_motion = Passageway_task::DOOR_CLOSE;
  259. tp_passageway_task->m_request_turntable_direction = Passageway_task::TURNTABLE_DIRECTION_OUTSIDE;
  260. t_error = t_passageway.execute_task(tp_task_Base3, Dispatch_device_base::E_ONE_LEVEL);
  261. std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
  262. std::cout << " ---------------------------------------------------" << std::endl;
  263. char zxczxcxzc3 ;
  264. std::cin >> zxczxcxzc3 ;
  265. while ( 1 )
  266. {
  267. std::cout << " huli test :::: " << " ===================================== " << std::endl;
  268. std::cout << " huli test :::: " << " tp_passageway_task->get_task_statu = " << tp_passageway_task->get_task_statu() << std::endl;
  269. std::cout << " huli test :::: " << " tp_passageway_task->m_respons_status = " << tp_passageway_task->m_respons_status << std::endl;
  270. std::cout << " huli test :::: " << " m_respons_key = " << tp_passageway_task->m_respons_key << std::endl;
  271. std::cout << " huli test :::: " << " m_respons_status = " << tp_passageway_task->m_respons_status << std::endl;
  272. std::cout << " huli test :::: " << " m_respons_inside_door_motion = " << tp_passageway_task->m_respons_inside_door_motion << std::endl;
  273. std::cout << " huli test :::: " << " m_respons_outside_door_motion = " << tp_passageway_task->m_respons_outside_door_motion << std::endl;
  274. std::cout << " huli test :::: " << " m_respons_turntable_direction = " << tp_passageway_task->m_respons_turntable_direction << std::endl;
  275. std::cout << " ---------------------------------------------------" << std::endl;
  276. std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
  277. std::cout << " huli test :::: " << " t_passageway_base.get_passageway_status() = " << t_passageway.get_dispatch_device_status() << std::endl;
  278. int heat = t_passageway.m_last_heartbeat;
  279. std::cout << " huli test :::: " << " m_last_heartbeat = " << heat << std::endl;
  280. std::cout << " huli test :::: " << " m_actual_device_status = " << t_passageway.m_actual_device_status << std::endl;
  281. std::cout << " huli test :::: " << " m_actual_inside_load_status = " << t_passageway.m_actual_inside_load_status << std::endl;
  282. std::cout << " huli test :::: " << " m_actual_outside_load_status = " << t_passageway.m_actual_outside_load_status << std::endl;
  283. std::cout << " huli test :::: " << " m_actual_front_overstep_the_boundary = " << t_passageway.m_actual_front_overstep_the_boundary << std::endl;
  284. std::cout << " huli test :::: " << " m_actual_back_overstep_the_boundary = " << t_passageway.m_actual_back_overstep_the_boundary << std::endl;
  285. std::cout << " huli test :::: " << " m_actual_height_overstep_the_boundary = " << t_passageway.m_actual_height_overstep_the_boundary << std::endl;
  286. std::cout << " huli test :::: " << " m_actual_outside_door_sensor = " << t_passageway.m_actual_outside_door_sensor << std::endl;
  287. std::cout << " huli test :::: " << " m_actual_inside_door_motion = " << t_passageway.m_actual_inside_door_motion << std::endl;
  288. std::cout << " huli test :::: " << " m_actual_outside_door_motion = " << t_passageway.m_actual_outside_door_motion << std::endl;
  289. std::cout << " huli test :::: " << " m_actual_turntable_load_status = " << t_passageway.m_actual_turntable_load_status << std::endl;
  290. std::cout << " huli test :::: " << " m_actual_turntable_direction = " << t_passageway.m_actual_turntable_direction << std::endl;
  291. std::cout << " huli test :::: " << " m_actual_error_code = " << std::endl;
  292. for (int i = 0; i < 50; ++i)
  293. {
  294. printf("0x%x ", t_passageway.m_actual_error_code[i]);
  295. }
  296. std::cout << std::endl;
  297. std::cout << " huli test :::: " << " m_actual_warning_code = " << std::endl;
  298. for (int i = 0; i < 50; ++i)
  299. {
  300. printf("0x%x ", t_passageway.m_actual_warning_code[i]);
  301. }
  302. std::cout << std::endl;
  303. std::cout << " huli test :::: " << " m_actual_error_description = " << t_passageway.m_actual_error_description << std::endl;
  304. std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
  305. std::this_thread::sleep_for(std::chrono::milliseconds(1000));
  306. }
  307. char ch123 ;
  308. std::cin >> ch123 ;
  309. Dispatch_communication::get_instance_references().communication_uninit();
  310. return 0;
  311. int t_dispatch_id = 0;
  312. // std::cin >> t_dispatch_id ;
  313. if ( argc == 2 )
  314. {
  315. std::cout << " huli test :::: " << " argv[1] = " << argv[1] << std::endl;
  316. t_dispatch_id = atoi(argv[1]);
  317. }
  318. std::cout << " huli test :::: " << " t_dispatch_id = " << t_dispatch_id << std::endl;
  319. Dispatch_manager::get_instance_references().dispatch_manager_init(t_dispatch_id);
  320. std::cout << "Dispatch_manager = " << Dispatch_manager::get_instance_references().get_dispatch_manager_status() << std::endl;
  321. System_executor::get_instance_references().system_executor_init(8);
  322. std::cout << "System_executor = " << System_executor::get_instance_references().get_system_executor_status() << std::endl;
  323. System_communication::get_instance_references().communication_init();
  324. char ch ;
  325. std::cin >> ch ;
  326. System_communication::get_instance_references().communication_uninit();
  327. System_executor::get_instance_references().system_executor_uninit();
  328. Dispatch_manager::get_instance_references().dispatch_manager_uninit();
  329. return 0;
  330. }