|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-#define MAIN_TEST 1
|
|
|
+//#define MAIN_TEST 1
|
|
|
//#define PROCESS_TEST 1
|
|
|
#define TIME_TEST 1
|
|
|
|
|
@@ -248,6 +248,59 @@ public:
|
|
|
DISPATCH_CARRIER_STORE_7 = 407,
|
|
|
DISPATCH_CARRIER_STORE_8 = 408,
|
|
|
DISPATCH_CARRIER_STORE_9 = 409,
|
|
|
+ DISPATCH_CARRIER_STORE_10 = 410,
|
|
|
+ DISPATCH_CARRIER_STORE_11 = 411,
|
|
|
+ DISPATCH_CARRIER_STORE_12 = 412,
|
|
|
+ DISPATCH_CARRIER_STORE_13 = 413,
|
|
|
+ DISPATCH_CARRIER_STORE_14 = 414,
|
|
|
+ DISPATCH_CARRIER_STORE_15 = 415,
|
|
|
+ DISPATCH_CARRIER_STORE_16 = 416,
|
|
|
+ DISPATCH_CARRIER_STORE_17 = 417,
|
|
|
+ DISPATCH_CARRIER_STORE_18 = 418,
|
|
|
+ DISPATCH_CARRIER_STORE_19 = 419,
|
|
|
+ DISPATCH_CARRIER_STORE_20 = 420,
|
|
|
+ DISPATCH_CARRIER_STORE_21 = 421,
|
|
|
+ DISPATCH_CARRIER_STORE_22 = 422,
|
|
|
+ DISPATCH_CARRIER_STORE_23 = 423,
|
|
|
+ DISPATCH_CARRIER_STORE_24 = 424,
|
|
|
+ DISPATCH_CARRIER_STORE_25 = 425,
|
|
|
+ DISPATCH_CARRIER_STORE_26 = 426,
|
|
|
+ DISPATCH_CARRIER_STORE_27 = 427,
|
|
|
+ DISPATCH_CARRIER_STORE_28 = 428,
|
|
|
+ DISPATCH_CARRIER_STORE_29 = 429,
|
|
|
+ DISPATCH_CARRIER_STORE_30 = 430,
|
|
|
+ DISPATCH_CARRIER_STORE_31 = 431,
|
|
|
+ DISPATCH_CARRIER_STORE_32 = 432,
|
|
|
+ DISPATCH_CARRIER_STORE_33 = 433,
|
|
|
+ DISPATCH_CARRIER_STORE_34 = 434,
|
|
|
+ DISPATCH_CARRIER_STORE_35 = 435,
|
|
|
+ DISPATCH_CARRIER_STORE_36 = 436,
|
|
|
+ DISPATCH_CARRIER_STORE_37 = 437,
|
|
|
+ DISPATCH_CARRIER_STORE_38 = 438,
|
|
|
+ DISPATCH_CARRIER_STORE_39 = 439,
|
|
|
+ DISPATCH_CARRIER_STORE_40 = 440,
|
|
|
+ DISPATCH_CARRIER_STORE_41 = 441,
|
|
|
+ DISPATCH_CARRIER_STORE_42 = 442,
|
|
|
+ DISPATCH_CARRIER_STORE_43 = 443,
|
|
|
+ DISPATCH_CARRIER_STORE_44 = 444,
|
|
|
+ DISPATCH_CARRIER_STORE_45 = 445,
|
|
|
+ DISPATCH_CARRIER_STORE_46 = 446,
|
|
|
+ DISPATCH_CARRIER_STORE_47 = 447,
|
|
|
+ DISPATCH_CARRIER_STORE_48 = 448,
|
|
|
+ DISPATCH_CARRIER_STORE_49 = 449,
|
|
|
+ DISPATCH_CARRIER_STORE_50 = 450,
|
|
|
+ DISPATCH_CARRIER_STORE_51 = 451,
|
|
|
+ DISPATCH_CARRIER_STORE_52 = 452,
|
|
|
+ DISPATCH_CARRIER_STORE_53 = 453,
|
|
|
+ DISPATCH_CARRIER_STORE_54 = 454,
|
|
|
+ DISPATCH_CARRIER_STORE_55 = 455,
|
|
|
+ DISPATCH_CARRIER_STORE_56 = 456,
|
|
|
+ DISPATCH_CARRIER_STORE_57 = 457,
|
|
|
+ DISPATCH_CARRIER_STORE_58 = 458,
|
|
|
+ DISPATCH_CARRIER_STORE_59 = 459,
|
|
|
+ DISPATCH_CARRIER_STORE_60 = 460,
|
|
|
+ DISPATCH_CARRIER_STORE_61 = 461,
|
|
|
+ DISPATCH_CARRIER_STORE_END = 499,
|
|
|
|
|
|
DISPATCH_CATCHER_STORE_START = 500, //取车流程 开始
|
|
|
DISPATCH_CATCHER_STORE_1 = 501,
|
|
@@ -259,6 +312,37 @@ public:
|
|
|
DISPATCH_CATCHER_STORE_7 = 507,
|
|
|
DISPATCH_CATCHER_STORE_8 = 508,
|
|
|
DISPATCH_CATCHER_STORE_9 = 509,
|
|
|
+ DISPATCH_CATCHER_STORE_10 = 510,
|
|
|
+ DISPATCH_CATCHER_STORE_11 = 511,
|
|
|
+ DISPATCH_CATCHER_STORE_12 = 512,
|
|
|
+ DISPATCH_CATCHER_STORE_13 = 513,
|
|
|
+ DISPATCH_CATCHER_STORE_14 = 514,
|
|
|
+ DISPATCH_CATCHER_STORE_15 = 515,
|
|
|
+ DISPATCH_CATCHER_STORE_16 = 516,
|
|
|
+ DISPATCH_CATCHER_STORE_17 = 517,
|
|
|
+ DISPATCH_CATCHER_STORE_18 = 518,
|
|
|
+ DISPATCH_CATCHER_STORE_19 = 519,
|
|
|
+ DISPATCH_CATCHER_STORE_20 = 520,
|
|
|
+ DISPATCH_CATCHER_STORE_21 = 521,
|
|
|
+ DISPATCH_CATCHER_STORE_22 = 522,
|
|
|
+ DISPATCH_CATCHER_STORE_23 = 523,
|
|
|
+ DISPATCH_CATCHER_STORE_24 = 524,
|
|
|
+ DISPATCH_CATCHER_STORE_25 = 525,
|
|
|
+ DISPATCH_CATCHER_STORE_26 = 526,
|
|
|
+ DISPATCH_CATCHER_STORE_27 = 527,
|
|
|
+ DISPATCH_CATCHER_STORE_28 = 528,
|
|
|
+ DISPATCH_CATCHER_STORE_29 = 529,
|
|
|
+ DISPATCH_CATCHER_STORE_30 = 530,
|
|
|
+ DISPATCH_CATCHER_STORE_31 = 531,
|
|
|
+ DISPATCH_CATCHER_STORE_32 = 532,
|
|
|
+ DISPATCH_CATCHER_STORE_33 = 533,
|
|
|
+ DISPATCH_CATCHER_STORE_34 = 534,
|
|
|
+ DISPATCH_CATCHER_STORE_35 = 535,
|
|
|
+ DISPATCH_CATCHER_STORE_36 = 536,
|
|
|
+ DISPATCH_CATCHER_STORE_37 = 537,
|
|
|
+ DISPATCH_CATCHER_STORE_38 = 538,
|
|
|
+ DISPATCH_CATCHER_STORE_39 = 539,
|
|
|
+ DISPATCH_CATCHER_STORE_END = 599,
|
|
|
|
|
|
DISPATCH_CONTROL_DISCONNECT_DEVICE = 7, //流程 解除设备
|
|
|
DISPATCH_CONTROL_OVER = 8, //流程完成
|
|
@@ -288,33 +372,37 @@ public:
|
|
|
//调度设备机器人节点
|
|
|
struct Dispatch_catcher_node
|
|
|
{
|
|
|
- Dispatch_control_status m_dispatch_control_status; //调度控制的状态, 控制步骤
|
|
|
- bool m_dispatch_control_start_flag =false; //调度设备机器人启动标志位
|
|
|
+ Dispatch_control_status m_dispatch_control_status; //调度控制的状态, 控制步骤
|
|
|
+ bool m_dispatch_control_start_flag =false; //调度设备机器人启动标志位
|
|
|
// 核心机器人, 2号
|
|
|
- std::shared_ptr<Dispatch_device_base> mp_main_catcher; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
- std::shared_ptr<Task_Base> mp_main_catcher_task; //调度任务指针, 内存由本模块管理
|
|
|
+ std::shared_ptr<Dispatch_device_base> mp_main_catcher; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
+ std::shared_ptr<Task_Base> mp_main_catcher_task; //调度任务指针, 内存由本模块管理
|
|
|
+ Dispatch_device_base::Dispatch_task_level m_main_catcher_task_level;
|
|
|
+
|
|
|
//跟随搬运器, 3号搬运器
|
|
|
- bool m_following_flag; //3号搬运器是否跟随机器人, 如果车位在3楼, 则为false
|
|
|
- std::shared_ptr<Dispatch_device_base> mp_following_carrier; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
- std::shared_ptr<Task_Base> mp_following_carrier_task; //调度任务指针, 内存由本模块管理
|
|
|
+ bool m_following_flag; //3号搬运器是否跟随机器人, 如果车位在3楼, 则为false
|
|
|
+ std::shared_ptr<Dispatch_device_base> mp_following_carrier; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
+ std::shared_ptr<Task_Base> mp_following_carrier_task; //调度任务指针, 内存由本模块管理
|
|
|
//目前没有让别人避让的功能
|
|
|
|
|
|
- Error_manager m_error; //错误码
|
|
|
+ Error_manager m_error; //错误码
|
|
|
};
|
|
|
|
|
|
//调度设备搬运器节点
|
|
|
struct Dispatch_carrier_node
|
|
|
{
|
|
|
- Dispatch_control_status m_dispatch_control_status; //调度控制的状态, 控制步骤
|
|
|
- bool m_dispatch_control_start_flag =false; //调度设备机器人启动标志位
|
|
|
+ Dispatch_control_status m_dispatch_control_status; //调度控制的状态, 控制步骤
|
|
|
+ bool m_dispatch_control_start_flag =false; //调度设备机器人启动标志位
|
|
|
//核心搬运器, 搬运汽车的搬运器
|
|
|
- std::shared_ptr<Dispatch_device_base> mp_main_carrier; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
- std::shared_ptr<Task_Base> mp_main_carrier_task; //调度任务指针, 内存由本模块管理
|
|
|
+ std::shared_ptr<Dispatch_device_base> mp_main_carrier; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
+ std::shared_ptr<Task_Base> mp_main_carrier_task; //调度任务指针, 内存由本模块管理
|
|
|
+ Dispatch_device_base::Dispatch_task_level m_main_carrier_task_level;
|
|
|
+
|
|
|
//给机器人发送避让指令, 2号机器人(可选)
|
|
|
- std::shared_ptr<Dispatch_device_base> mp_avoid_catcher; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
- std::shared_ptr<Task_Base> mp_avoid_catcher_task; //调度任务指针, 内存由本模块管理
|
|
|
+ std::shared_ptr<Dispatch_device_base> mp_avoid_catcher; //调度设备指针, 内存由Dispatch_manager来管理
|
|
|
+ std::shared_ptr<Task_Base> mp_avoid_catcher_task; //调度任务指针, 内存由本模块管理
|
|
|
|
|
|
- Error_manager m_error; //错误码
|
|
|
+ Error_manager m_error; //错误码
|
|
|
};
|
|
|
|
|
|
|