catcher_task.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // Created by huli on 2021/3/2.
  3. //
  4. #include "catcher_task.h"
  5. Catcher_task::Catcher_task()
  6. {
  7. //构造函数锁定任务类型为 LOCATE_MANGER_TASK,后续不允许更改
  8. m_task_type = CATCHER_TASK;
  9. m_task_statu = TASK_CREATED;
  10. m_task_statu_information.clear();
  11. m_task_error_manager.error_manager_clear_all();
  12. m_step = 0;
  13. m_request_x = 0; //机器人坐标x轴,
  14. m_request_y = 0; //机器人坐标y轴,
  15. m_request_b = 0; //机器人坐标b轴, 旋转范围80~280
  16. m_request_z = 0; //机器人坐标z轴,
  17. m_request_space_id = 0; //机器人空间位置的id.
  18. m_request_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  19. m_request_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  20. m_request_wheelbase = 0; //机器人抓车杆前后轮距.
  21. m_request_clamp_motion = E_CLAMP_NO_ACTION; //机器人夹车杆. 0=无动作,1=夹紧,2=松开
  22. m_respons_status = RESPONS_WORKING; //指令完成状态, 机器人答复指令, 返回任务完成的情况
  23. m_respons_x = 0; //机器人坐标x轴,
  24. m_respons_y = 0; //机器人坐标y轴,
  25. m_respons_b = 0; //机器人坐标b轴, 旋转范围80~280
  26. m_respons_z = 0; //机器人坐标z轴,
  27. m_respons_space_id = 0; //机器人空间位置的id.
  28. m_respons_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  29. m_respons_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  30. m_respons_wheelbase = 0; //机器人抓车杆前后轮距.
  31. m_respons_clamp_motion = E_CLAMP_NO_ACTION; //机器人夹车杆. 0=无动作,1=夹紧,2=松开
  32. }
  33. Catcher_task::~Catcher_task()
  34. {
  35. }