12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // Created by zx on 2020/7/7.
- //
- #ifndef NNXX_TESTS_STOREPROCESS_H
- #define NNXX_TESTS_STOREPROCESS_H
- #include <parkspace_allocation_message.pb.h>
- #include "TaskQueue/BaseTask.h"
- #include "Locate_communicator.h"
- class StoreProcessTask :public tq::BaseTask{
- public:
- StoreProcessTask();
- virtual ~StoreProcessTask();
- Error_manager init_task(unsigned int command_id, unsigned int terminor_id,std::string license);
- protected:
- virtual void Main();
- /*
- * 定位
- */
- Error_manager locate_step();
- /*
- * 分配车位
- */
- Error_manager alloc_space_step();
- /*
- * 车位解锁,当停车失败时需要车位解锁
- */
- Error_manager release_space_step();
- protected:
- unsigned int m_command_id;
- unsigned int m_terminor_id;
- std::string m_license; //当前流程的车辆标识(车牌号)
- //以下的流程中产生的数据
- message::Measure_response_msg m_measure_response_msg; //测量数据
- message::Parkspace_allocation_response_msg m_parcspace_alloc_response_msg; //分配的车位数据
- public:
- bool mb_completed;
- };
- #endif //NNXX_TESTS_STOREPROCESS_H
|