|
@@ -101,10 +101,15 @@ int main(int argc,char* argv[])
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
Catcher t_catcher;
|
|
Catcher t_catcher;
|
|
t_error = t_catcher.dispatch_device_base_init(1);
|
|
t_error = t_catcher.dispatch_device_base_init(1);
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
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::seconds(2));
|
|
|
|
|
|
std::shared_ptr<Task_Base> tp_task_Base(new Catcher_task);
|
|
std::shared_ptr<Task_Base> tp_task_Base(new Catcher_task);
|
|
@@ -119,18 +124,70 @@ int main(int argc,char* argv[])
|
|
tp_catcher_task->m_request_d2 = 444;
|
|
tp_catcher_task->m_request_d2 = 444;
|
|
tp_catcher_task->m_request_wheelbase = 555;
|
|
tp_catcher_task->m_request_wheelbase = 555;
|
|
tp_catcher_task->m_request_clamp_motion = Catcher_task::E_CLAMP_LOOSE;
|
|
tp_catcher_task->m_request_clamp_motion = Catcher_task::E_CLAMP_LOOSE;
|
|
|
|
+ t_error = t_catcher.execute_task(tp_task_Base, Dispatch_device_base::E_ONE_LEVEL);
|
|
|
|
+ std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
|
+ std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
|
|
+ char zxczxcxzc ;
|
|
|
|
+ std::cin >> zxczxcxzc ;
|
|
|
|
|
|
- t_error = t_catcher.execute_task(tp_task_Base, Dispatch_device_base::E_ONE_LEVEL);
|
|
|
|
|
|
+ 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 << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_catcher.get_dispatch_device_status() << std::endl;
|
|
|
|
+ std::cout << " huli test :::: " << " t_carrier_base.get_carrier_status() = " << t_catcher.get_actual_device_status() << std::endl;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
+ std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ Catcher t_catcher;
|
|
|
|
+ t_error = t_catcher.dispatch_device_base_init(1);
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
|
|
+ std::this_thread::sleep_for(std::chrono::seconds(2));
|
|
|
|
|
|
|
|
+ std::shared_ptr<Task_Base> tp_task_Base(new Catcher_task);
|
|
|
|
+ Catcher_task * tp_catcher_task = (Catcher_task *)tp_task_Base.get();
|
|
|
|
+ tp_catcher_task->task_init(NULL,std::chrono::milliseconds(15000));
|
|
|
|
+ tp_catcher_task->m_request_key = "ABCDEF";
|
|
|
|
+ tp_catcher_task->m_request_x = 123;
|
|
|
|
+ tp_catcher_task->m_request_y = 456;
|
|
|
|
+ tp_catcher_task->m_request_b = 80;
|
|
|
|
+ tp_catcher_task->m_request_z = 789;
|
|
|
|
+ tp_catcher_task->m_request_d1 = 333;
|
|
|
|
+ tp_catcher_task->m_request_d2 = 444;
|
|
|
|
+ tp_catcher_task->m_request_wheelbase = 555;
|
|
|
|
+ tp_catcher_task->m_request_clamp_motion = Catcher_task::E_CLAMP_LOOSE;
|
|
|
|
+ t_error = t_catcher.execute_task(tp_task_Base, Dispatch_device_base::E_ONE_LEVEL);
|
|
|
|
+ std::cout << " huli test :::: " << " t_error = " << t_error << std::endl;
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
std::cout << " ---------------------------------------------------" << std::endl;
|
|
|
|
|
|
-
|
|
|
|
char zxczxcxzc ;
|
|
char zxczxcxzc ;
|
|
std::cin >> zxczxcxzc ;
|
|
std::cin >> zxczxcxzc ;
|
|
|
|
|
|
-
|
|
|
|
while ( 1 )
|
|
while ( 1 )
|
|
{
|
|
{
|
|
std::cout << " huli test :::: " << " ===================================== " << std::endl;
|
|
std::cout << " huli test :::: " << " ===================================== " << std::endl;
|
|
@@ -159,6 +216,32 @@ int main(int argc,char* argv[])
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
char ch123 ;
|
|
char ch123 ;
|
|
std::cin >> ch123 ;
|
|
std::cin >> ch123 ;
|
|
|
|
|
|
@@ -169,6 +252,16 @@ int main(int argc,char* argv[])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
int t_dispatch_id = 0;
|
|
int t_dispatch_id = 0;
|
|
// std::cin >> t_dispatch_id ;
|
|
// std::cin >> t_dispatch_id ;
|
|
if ( argc == 2 )
|
|
if ( argc == 2 )
|