catcher_task.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_request_x = 0; //机器人坐标x轴,
  13. m_request_y = 0; //机器人坐标y轴,
  14. m_request_b = 0; //机器人坐标b轴, 旋转范围80~280
  15. m_request_z = 0; //机器人坐标z轴,
  16. m_request_space_id = 0; //机器人空间位置的id.
  17. m_request_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  18. m_request_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  19. m_request_wheelbase = 0; //机器人抓车杆前后轮距.
  20. m_request_clamp_motion = E_CLAMP_NO_ACTION; //机器人夹车杆. 0=无动作,1=夹紧,2=松开
  21. m_respons_status = RESPONS_WORKING; //指令完成状态, 机器人答复指令, 返回任务完成的情况
  22. m_respons_x = 0; //机器人坐标x轴,
  23. m_respons_y = 0; //机器人坐标y轴,
  24. m_respons_b = 0; //机器人坐标b轴, 旋转范围80~280
  25. m_respons_z = 0; //机器人坐标z轴,
  26. m_respons_space_id = 0; //机器人空间位置的id.
  27. m_respons_d1 = 0; //机器人坐标d1轴, 机器人抓车杆纵向移动(前轮抓杆)
  28. m_respons_d2 = 0; //机器人坐标d2轴, 机器人抓车杆纵向移动(后轮抓杆)
  29. m_respons_wheelbase = 0; //机器人抓车杆前后轮距.
  30. m_respons_clamp_motion = E_CLAMP_NO_ACTION; //机器人夹车杆. 0=无动作,1=夹紧,2=松开
  31. }
  32. Catcher_task::~Catcher_task()
  33. {
  34. }