locate_message.proto 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. syntax = "proto2";
  2. package message;
  3. import "message_base.proto";
  4. enum Lidar_statu //雷达状态
  5. {
  6. eNormal=0;
  7. eBusy=1;
  8. eLidarMiss=2;
  9. }
  10. //定位模块状态
  11. message Locate_status_msg
  12. {
  13. required Message_type msg_type=1; //消息类型
  14. optional Command_message cmd_msg=2; //正在执行的指令信息(可无)
  15. required Lidar_statu dj_statu1=3; //大疆测量雷达1连接状态
  16. required Lidar_statu dj_statu2=4; //大疆测量雷达2连接状态
  17. required Lidar_statu dj_statu3=5; //大疆测量雷达3连接状态
  18. required Lidar_statu dj_statu4=6; //大疆测量雷达4连接状态
  19. }
  20. //定位类型
  21. enum Locate_type
  22. {
  23. eReal_time=0; //实时定位,返回地面雷达实时数据
  24. eTrigger=1; //触发式定位,返回综合测量结果
  25. }
  26. //定位请求消息
  27. message Locate_request_msg
  28. {
  29. required Message_type msg_type=1; //消息类型
  30. required Command_message cmd_msg=2; //指令信息
  31. required Locate_type locate_type=3;
  32. optional int32 time_out=4 [default=5000]; //定位测量超时设置
  33. }
  34. //定位测量返回消息
  35. message Locate_response_msg
  36. {
  37. required Message_type msg_type=1; //消息类型
  38. required Command_message cmd_msg=2;
  39. required int32 error_code=3;
  40. optional string error_description=4;
  41. optional float length=5;
  42. optional float width=6;
  43. optional float height=7;
  44. optional float wheel_base=8;
  45. optional float x=9;
  46. optional float y=10;
  47. optional float theta=11;
  48. }