|
@@ -102,27 +102,27 @@ int main(int argc,char* argv[])
|
|
|
System_communication::get_instance_references().communication_init();
|
|
|
System_communication::get_instance_references().set_encapsulate_cycle_time(1000);
|
|
|
|
|
|
+ std::this_thread::sleep_for(std::chrono::seconds(1));
|
|
|
+ Dispatch_coordinates::get_instance_references().cout_space_lock();
|
|
|
+
|
|
|
+ Dispatch_coordinates * tp_dispatch_coordinates = Dispatch_coordinates::get_instance_pointer();
|
|
|
+ int t_avoid_catcher_id=-1;
|
|
|
+ t_error = Dispatch_coordinates::get_instance_references().carrier_try_space_lock(0, 7-1,
|
|
|
+ 0, tp_dispatch_coordinates->m_space_lock_columns-1,
|
|
|
+ 1, t_avoid_catcher_id);
|
|
|
+ t_error = Dispatch_coordinates::get_instance_references().carrier_try_space_lock(3, 0,
|
|
|
+ 3, 7-1,
|
|
|
+ 0, t_avoid_catcher_id);
|
|
|
+
|
|
|
+ Dispatch_coordinates::get_instance_references().cout_space_lock();
|
|
|
+ tp_dispatch_coordinates->carrier_space_unlock(0);
|
|
|
+ Dispatch_coordinates::get_instance_references().cout_space_lock();
|
|
|
+ tp_dispatch_coordinates->carrier_space_unlock(1);
|
|
|
+ Dispatch_coordinates::get_instance_references().cout_space_lock();
|
|
|
+
|
|
|
+
|
|
|
while (1)
|
|
|
{
|
|
|
-// Dispatch_manager::space_device** tpp = Dispatch_manager::get_instance_references().mpp_space_lock;
|
|
|
-// for (int i = 0; i < 11; ++i)
|
|
|
-// {
|
|
|
-// for (int j = 0; j < 15; ++j)
|
|
|
-// {
|
|
|
-// if ( tpp[i][j].m_catcher_id != -1 )
|
|
|
-// {
|
|
|
-// std::cout << " huli test :::: " << " tpp[i][j].m_catcher_id = " << tpp[i][j].m_catcher_id << std::endl;
|
|
|
-// std::cout << " huli test :::: " << " i = " << i << std::endl;
|
|
|
-// std::cout << " huli test :::: " << " j = " << j << std::endl;
|
|
|
-// }
|
|
|
-// if ( tpp[i][j].m_carrier_id != -1 )
|
|
|
-// {
|
|
|
-// std::cout << " huli test :::: " << " tpp[i][j].m_carrier_id = " << tpp[i][j].m_carrier_id << std::endl;
|
|
|
-// std::cout << " huli test :::: " << " i = " << i << std::endl;
|
|
|
-// std::cout << " huli test :::: " << " j = " << j << std::endl;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(1));
|
|
|
}
|
|
@@ -158,21 +158,16 @@ int main(int argc,char* argv[])
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
Catcher t_catcher;
|
|
|
t_error = t_catcher.dispatch_device_base_init(1, 102);
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
- std::this_thread::sleep_for(std::chrono::seconds(2));
|
|
|
-
|
|
|
+ std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
|
|
|
|
|
std::shared_ptr<Task_Base> tp_task_Base1(new Catcher_task);
|
|
|
Catcher_task * tp_catcher_task1 = (Catcher_task *)tp_task_Base1.get();
|
|
|
tp_catcher_task1->task_init(NULL,std::chrono::milliseconds(15000));
|
|
|
tp_catcher_task1->m_request_key = "x23456789012345678901234567890r1";
|
|
|
- tp_catcher_task1->m_request_x = 17955;
|
|
|
+ tp_catcher_task1->m_request_x = 7755;
|
|
|
tp_catcher_task1->m_request_y = 3000;
|
|
|
tp_catcher_task1->m_request_b = 90;
|
|
|
tp_catcher_task1->m_request_z = 5410;
|
|
@@ -184,80 +179,12 @@ 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));
|
|
|
-
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
Carrier t_carrier20;
|
|
|
t_error = t_carrier20.dispatch_device_base_init(0, 200);
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
- std::this_thread::sleep_for(std::chrono::seconds(2));
|
|
|
+ std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
|
|
|
|
|
std::shared_ptr<Task_Base> tp_task_Base20(new Carrier_task);
|
|
|
Carrier_task * tp_carrier_task20 = (Carrier_task *)tp_task_Base20.get();
|
|
@@ -280,80 +207,13 @@ 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, 207);
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
- std::this_thread::sleep_for(std::chrono::seconds(2));
|
|
|
+ std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
|
|
|
|
|
std::shared_ptr<Task_Base> tp_task_Base21(new Carrier_task);
|
|
|
Carrier_task * tp_carrier_task21 = (Carrier_task *)tp_task_Base21.get();
|
|
@@ -376,86 +236,18 @@ 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, 203);
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
- std::this_thread::sleep_for(std::chrono::seconds(2));
|
|
|
+ std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
|
|
|
|
|
std::shared_ptr<Task_Base> tp_task_Base22(new Carrier_task);
|
|
|
Carrier_task * tp_carrier_task22 = (Carrier_task *)tp_task_Base22.get();
|
|
|
tp_carrier_task22->task_init(NULL,std::chrono::milliseconds(15000));
|
|
|
tp_carrier_task22->m_request_key = "x23456789012345678901234567890c2";
|
|
|
- tp_carrier_task22->m_request_x = 17955;
|
|
|
+ tp_carrier_task22->m_request_x = 7755;
|
|
|
// tp_carrier_task22->m_request_x = 4700;
|
|
|
tp_carrier_task22->m_request_y = 3000;
|
|
|
tp_carrier_task22->m_request_z = 5125;
|
|
@@ -472,82 +264,13 @@ 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 ;
|
|
|
- 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));
|
|
|
-
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
|
|
|
/*
|
|
|
|
|
|
Passageway t_passageway;
|
|
|
t_error = t_passageway.dispatch_device_base_init(1);
|
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
- std::this_thread::sleep_for(std::chrono::seconds(2));
|
|
|
+ std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
|
|
|
|
|
std::shared_ptr<Task_Base> tp_task_Base3(new Passageway_task);
|
|
|
Passageway_task * tp_passageway_task = (Passageway_task *)tp_task_Base3.get();
|