|
@@ -93,7 +93,7 @@ int main(int argc,char* argv[])
|
|
|
|
|
|
while (1)
|
|
|
{
|
|
|
-
|
|
|
+ std::this_thread::sleep_for(std::chrono::seconds(11111111));
|
|
|
}
|
|
|
return 0;
|
|
|
#endif
|
|
@@ -152,72 +152,6 @@ int main(int argc,char* argv[])
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
- /*
|
|
|
- char zxczxcxzc1 ;
|
|
|
- std::cin >> zxczxcxzc1 ;
|
|
|
- while ( 1 )
|
|
|
- {
|
|
|
- std::cout << " huli test :::: " << " ===================================== " << std::endl;
|
|
|
- std::cout << " huli test :::: " << " tp_catcher_task->get_task_statu = " << tp_catcher_task->get_task_statu() << std::endl;
|
|
|
- std::cout << " huli test :::: " << " tp_catcher_task->m_respons_status = " << tp_catcher_task->m_respons_status << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " m_respons_key = " << tp_catcher_task->m_respons_key << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_status = " << tp_catcher_task->m_respons_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_x = " << tp_catcher_task->m_respons_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y = " << tp_catcher_task->m_respons_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_b = " << tp_catcher_task->m_respons_b << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_z = " << tp_catcher_task->m_respons_z << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_d1 = " << tp_catcher_task->m_respons_d1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_d2 = " << tp_catcher_task->m_respons_d2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_wheelbase = " << tp_catcher_task->m_respons_wheelbase << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_clamp_motion = " << tp_catcher_task->m_respons_clamp_motion << std::endl;
|
|
|
- std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
|
|
|
- std::cout << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_catcher.get_dispatch_device_status() << std::endl;
|
|
|
- int heat = t_catcher.m_last_heartbeat;
|
|
|
- std::cout << " huli test :::: " << " m_last_heartbeat = " << heat << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_device_status = " << t_catcher.m_actual_device_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_load_status = " << t_catcher.m_actual_load_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_x = " << t_catcher.m_actual_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y = " << t_catcher.m_actual_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_b = " << t_catcher.m_actual_b << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_z = " << t_catcher.m_actual_z << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_d1 = " << t_catcher.m_actual_d1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_d2 = " << t_catcher.m_actual_d2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion1 = " << t_catcher.m_actual_clamp_motion1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion2 = " << t_catcher.m_actual_clamp_motion2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion3 = " << t_catcher.m_actual_clamp_motion3 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion4 = " << t_catcher.m_actual_clamp_motion4 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_error_code = " << std::endl;
|
|
|
- for (int i = 0; i < 50; ++i)
|
|
|
- {
|
|
|
- printf("0x%x ", t_catcher.m_actual_error_code[i]);
|
|
|
- }
|
|
|
- std::cout << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " m_actual_warning_code = " << std::endl;
|
|
|
- for (int i = 0; i < 50; ++i)
|
|
|
- {
|
|
|
- printf("0x%x ", t_catcher.m_actual_warning_code[i]);
|
|
|
- }
|
|
|
- std::cout << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_error_description = " << t_catcher.m_actual_error_description << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
|
-
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -231,7 +165,6 @@ int main(int argc,char* argv[])
|
|
|
tp_carrier_task20->task_init(NULL,std::chrono::milliseconds(15000));
|
|
|
tp_carrier_task20->m_request_key = "x23456789012345678901234567890c0";
|
|
|
tp_carrier_task20->m_request_x = 1;
|
|
|
-// tp_carrier_task20->m_request_x = 32600;
|
|
|
tp_carrier_task20->m_request_y = 3000;
|
|
|
tp_carrier_task20->m_request_z = 2525;
|
|
|
tp_carrier_task20->m_request_y1 = 4500;
|
|
@@ -247,75 +180,6 @@ int main(int argc,char* argv[])
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
- /*
|
|
|
- char zxczxcxzc20 ;
|
|
|
- std::cin >> zxczxcxzc20 ;
|
|
|
- while ( 1 )
|
|
|
- {
|
|
|
- std::cout << " huli test :::: " << " ===================================== " << std::endl;
|
|
|
- std::cout << " huli test :::: " << " tp_carrier_task->get_task_statu = " << tp_carrier_task->get_task_statu() << std::endl;
|
|
|
- std::cout << " huli test :::: " << " tp_carrier_task->m_respons_status = " << tp_carrier_task->m_respons_status << std::endl;
|
|
|
-
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " m_respons_key = " << tp_carrier_task->m_respons_key << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_status = " << tp_carrier_task->m_respons_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_x = " << tp_carrier_task->m_respons_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y = " << tp_carrier_task->m_respons_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_z = " << tp_carrier_task->m_respons_z << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y1 = " << tp_carrier_task->m_respons_y1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y2 = " << tp_carrier_task->m_respons_y2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_clamp_motion = " << tp_carrier_task->m_respons_clamp_motion << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_joint_motion_x = " << tp_carrier_task->m_respons_joint_motion_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_joint_motion_y = " << tp_carrier_task->m_respons_joint_motion_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_space_id = " << tp_carrier_task->m_respons_space_id << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_floor_id = " << tp_carrier_task->m_respons_floor_id << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_wheelbase = " << tp_carrier_task->m_respons_wheelbase << std::endl;
|
|
|
- std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
|
|
|
- std::cout << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_carrier.get_dispatch_device_status() << std::endl;
|
|
|
- int heat = t_carrier.m_last_heartbeat;
|
|
|
- std::cout << " huli test :::: " << " m_last_heartbeat = " << heat << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_device_status = " << t_carrier.m_actual_device_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_load_status = " << t_carrier.m_actual_load_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_x = " << t_carrier.m_actual_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y = " << t_carrier.m_actual_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_z = " << t_carrier.m_actual_z << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y1 = " << t_carrier.m_actual_y1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y2 = " << t_carrier.m_actual_y2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion1 = " << t_carrier.m_actual_clamp_motion1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion2 = " << t_carrier.m_actual_clamp_motion2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_small_sports_car_motion = " << t_carrier.m_actual_small_sports_car_motion << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_joint_motion_x1 = " << t_carrier.m_actual_joint_motion_x1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_joint_motion_x2 = " << t_carrier.m_actual_joint_motion_x2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_error_code = " << std::endl;
|
|
|
- for (int i = 0; i < 50; ++i)
|
|
|
- {
|
|
|
- printf("0x%x ", t_carrier.m_actual_error_code[i]);
|
|
|
- }
|
|
|
- std::cout << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " m_actual_warning_code = " << std::endl;
|
|
|
- for (int i = 0; i < 50; ++i)
|
|
|
- {
|
|
|
- printf("0x%x ", t_carrier.m_actual_warning_code[i]);
|
|
|
- }
|
|
|
- std::cout << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_error_description = " << t_carrier.m_actual_error_description << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
|
-
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
|
|
|
Carrier t_carrier21;
|
|
|
t_error = t_carrier21.dispatch_device_base_init(1);
|
|
@@ -326,7 +190,6 @@ int main(int argc,char* argv[])
|
|
|
Carrier_task * tp_carrier_task21 = (Carrier_task *)tp_task_Base21.get();
|
|
|
tp_carrier_task21->task_init(NULL,std::chrono::milliseconds(15000));
|
|
|
tp_carrier_task21->m_request_key = "x23456789012345678901234567890c1";
|
|
|
-// tp_carrier_task21->m_request_x = 1;
|
|
|
tp_carrier_task21->m_request_x = 32600;
|
|
|
tp_carrier_task21->m_request_y = 3000;
|
|
|
tp_carrier_task21->m_request_z = 2525;
|
|
@@ -343,75 +206,6 @@ int main(int argc,char* argv[])
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
- /*
|
|
|
- char zxczxcxzc21 ;
|
|
|
- std::cin >> zxczxcxzc21 ;
|
|
|
- while ( 1 )
|
|
|
- {
|
|
|
- std::cout << " huli test :::: " << " ===================================== " << std::endl;
|
|
|
- std::cout << " huli test :::: " << " tp_carrier_task->get_task_statu = " << tp_carrier_task->get_task_statu() << std::endl;
|
|
|
- std::cout << " huli test :::: " << " tp_carrier_task->m_respons_status = " << tp_carrier_task->m_respons_status << std::endl;
|
|
|
-
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " m_respons_key = " << tp_carrier_task->m_respons_key << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_status = " << tp_carrier_task->m_respons_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_x = " << tp_carrier_task->m_respons_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y = " << tp_carrier_task->m_respons_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_z = " << tp_carrier_task->m_respons_z << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y1 = " << tp_carrier_task->m_respons_y1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_y2 = " << tp_carrier_task->m_respons_y2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_clamp_motion = " << tp_carrier_task->m_respons_clamp_motion << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_joint_motion_x = " << tp_carrier_task->m_respons_joint_motion_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_joint_motion_y = " << tp_carrier_task->m_respons_joint_motion_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_space_id = " << tp_carrier_task->m_respons_space_id << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_floor_id = " << tp_carrier_task->m_respons_floor_id << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_respons_wheelbase = " << tp_carrier_task->m_respons_wheelbase << std::endl;
|
|
|
- std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
|
|
|
- std::cout << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_carrier.get_dispatch_device_status() << std::endl;
|
|
|
- int heat = t_carrier.m_last_heartbeat;
|
|
|
- std::cout << " huli test :::: " << " m_last_heartbeat = " << heat << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_device_status = " << t_carrier.m_actual_device_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_load_status = " << t_carrier.m_actual_load_status << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_x = " << t_carrier.m_actual_x << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y = " << t_carrier.m_actual_y << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_z = " << t_carrier.m_actual_z << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y1 = " << t_carrier.m_actual_y1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_y2 = " << t_carrier.m_actual_y2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion1 = " << t_carrier.m_actual_clamp_motion1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_clamp_motion2 = " << t_carrier.m_actual_clamp_motion2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_small_sports_car_motion = " << t_carrier.m_actual_small_sports_car_motion << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_joint_motion_x1 = " << t_carrier.m_actual_joint_motion_x1 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_joint_motion_x2 = " << t_carrier.m_actual_joint_motion_x2 << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_error_code = " << std::endl;
|
|
|
- for (int i = 0; i < 50; ++i)
|
|
|
- {
|
|
|
- printf("0x%x ", t_carrier.m_actual_error_code[i]);
|
|
|
- }
|
|
|
- std::cout << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " m_actual_warning_code = " << std::endl;
|
|
|
- for (int i = 0; i < 50; ++i)
|
|
|
- {
|
|
|
- printf("0x%x ", t_carrier.m_actual_warning_code[i]);
|
|
|
- }
|
|
|
- std::cout << std::endl;
|
|
|
- std::cout << " huli test :::: " << " m_actual_error_description = " << t_carrier.m_actual_error_description << std::endl;
|
|
|
-
|
|
|
- std::cout << " huli test :::: " << " *********************************************** = " << std::endl;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
|
-
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
|
|
|
Carrier t_carrier22;
|
|
|
t_error = t_carrier22.dispatch_device_base_init(2);
|
|
@@ -439,6 +233,7 @@ int main(int argc,char* argv[])
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
+
|
|
|
/*
|
|
|
char zxczxcxzc22 ;
|
|
|
std::cin >> zxczxcxzc22 ;
|