measure_message.proto 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. syntax = "proto2";
  2. package message;
  3. import "message_base.proto";
  4. //雷达管理模块的工作状态
  5. enum Laser_manager_status
  6. {
  7. LASER_MANAGER_UNKNOW = 0; //未知
  8. LASER_MANAGER_READY = 1; //准备,待机
  9. LASER_MANAGER_ISSUED_TASK = 2; //工作下发任务
  10. LASER_MANAGER_WAIT_REPLY = 3; //工作等待答复
  11. LASER_MANAGER_FAULT = 4; //故障
  12. }
  13. //子雷达状态
  14. enum Laser_statu
  15. {
  16. LASER_DISCONNECT =0; //雷达断连
  17. LASER_READY =1; //雷达正常待机,空闲
  18. LASER_BUSY =2; //雷达正在工作,正忙
  19. LASER_FAULT =3; //雷达错误
  20. }
  21. //定位管理模块的工作状态
  22. enum Locate_manager_status
  23. {
  24. LOCATE_MANAGER_UNKNOW = 0; //未知
  25. LOCATE_MANAGER_READY = 1; //准备,待机
  26. LOCATE_MANAGER_SIFT = 2; //sift点云筛选; 将车身和轮胎的点剥离出来
  27. LOCATE_MANAGER_CAR = 3; //通过车身 计算汽车的定位信息.
  28. LOCATE_MANAGER_WHEEL = 4; //通过车轮 计算汽车的定位信息.
  29. LOCATE_MANAGER_FAULT = 5; //故障
  30. }
  31. //雷达管理的状态
  32. enum Wanji_manager_status
  33. {
  34. WANJI_MANAGER_UNKNOWN = 0; //未知
  35. WANJI_MANAGER_READY = 1; //准备,待机
  36. WANJI_MANAGER_BUSY = 2; //工作正忙
  37. WANJI_MANAGER_ISSUED_SCAN = 3; //下发任务; 获取点云
  38. WANJI_MANAGER_WAIT_SCAN = 4; //等待任务; 扫描点云
  39. WANJI_MANAGER_ISSUED_DETECT = 5; //下发任务; 算法预测
  40. WANJI_MANAGER_WAIT_DETECT = 6; //等待任务; 算法预测
  41. WANJI_MANAGER_FAULT = 10; //故障
  42. }
  43. //万集设备身状态
  44. enum Wanji_lidar_device_status
  45. {
  46. WANJI_LIDAR_DEVICE_UNKNOWN = 0; //未知
  47. WANJI_LIDAR_DEVICE_READY = 1; //正常待机
  48. WANJI_LIDAR_DEVICE_DISCONNECT = 2; //断连
  49. WANJI_LIDAR_DEVICE_BUSY = 3; //工作正忙
  50. WANJI_LIDAR_DEVICE_FAULT =10; //故障
  51. }
  52. //万集区域功能的状态
  53. enum Region_worker_status
  54. {
  55. REGION_WORKER_UNKNOWN = 0; //未知
  56. REGION_WORKER_READY = 1; //准备,待机
  57. REGION_WORKER_BUSY = 2; //工作正忙
  58. REGION_WORKER_FAULT = 10; //故障
  59. }
  60. //定位模块状态
  61. message Measure_status_msg
  62. {
  63. required Base_info base_info=1; //消息类型
  64. required Id_struct id_struct=2;
  65. required Laser_manager_status laser_manager_status = 3; //大疆管理状态
  66. repeated Laser_statu laser_statu_vector = 4; //大疆雷达设备状态
  67. required Locate_manager_status locate_manager_status = 5; //大疆定位算法状态
  68. required Error_manager error_manager = 6;
  69. }
  70. //定位请求消息
  71. message Measure_request_msg
  72. {
  73. required Base_info base_info=1; //消息类型
  74. required string command_key=2; //指令唯一标识符id
  75. required Id_struct id_struct=3; //终端id
  76. }
  77. //定位测量返回消息
  78. message Measure_response_msg
  79. {
  80. required Base_info base_info=1; //消息类型
  81. required string command_key=2; //指令唯一标识符id
  82. required Id_struct id_struct=3;
  83. optional Locate_information locate_information=4;
  84. required Error_manager error_manager = 5;
  85. }
  86. //地面测量请求消息
  87. message Ground_detect_request_msg
  88. {
  89. required Base_info base_info=1; //消息类型
  90. required string command_key=2; //指令唯一标识符id
  91. required Id_struct id_struct=3; //终端id
  92. }
  93. //地面测量反馈消息
  94. message Ground_detect_response_msg
  95. {
  96. required Base_info base_info=1; //消息类型
  97. required string command_key=2; //指令唯一标识符id
  98. required Id_struct id_struct=3;
  99. optional Locate_information locate_information=4;
  100. required Error_manager error_manager = 5;
  101. }
  102. // 电子围栏状态
  103. enum Ground_statu
  104. {
  105. Nothing=0;
  106. Noise=1;
  107. Car_correct=2;
  108. Car_border_reached=3;
  109. }
  110. message Ground_status_msg
  111. {
  112. required Base_info base_info=1; //消息类型
  113. required Id_struct id_struct=2; //终端编号结构体
  114. required Wanji_manager_status wanji_manager_status = 3; //万集管理状态
  115. repeated Wanji_lidar_device_status wanji_lidar_device_status = 4; //万集设备身状态
  116. required Region_worker_status region_worker_status = 5; //万集区域功能的状态
  117. required Locate_information locate_information_realtime = 6;//地面雷达的 实时定位信息
  118. required Ground_statu ground_status=7; // 电子围栏状态
  119. // 超界状态,为0表示正常,从末尾开始123456位分别代表前、后、左、右、底盘、车高超界
  120. // 增加超宽、超轴距、左(逆时针)旋转超界,右(顺时针)旋转超界,前轮角超界判断,分别处于7 8 9 10 11
  121. // 增加 车辆移动 12位 静止为0,运动为1
  122. required int32 border_status=8;
  123. required Error_manager error_manager = 9;
  124. repeated Cloud_coordinate cloud=10; //点云坐标
  125. }
  126. /*测量信息*/
  127. //20221102, huli move to message.proto
  128. /*
  129. //message measure_info {
  130. // required float cx=1;
  131. // required float cy=2;
  132. // required float theta=3;
  133. // required float length=4;
  134. // required float width=5;
  135. // required float height=6;
  136. // required float wheelbase=7;
  137. // required float front_theta=8;
  138. // required int32 border_statu=9;
  139. // required int32 ground_status=10; // 电子围栏状态, 0 ok, 1 nothing, 2 noise, 3 border
  140. //}
  141. */
  142. //点云坐标
  143. message Cloud_coordinate
  144. {
  145. required float x=1;
  146. required float y=2;
  147. required float z=3;
  148. }
  149. //点云类型
  150. message Cloud_type
  151. {
  152. required int32 type=1;
  153. }
  154. //筛选点云; 请求消息
  155. message Locate_sift_request_msg
  156. {
  157. required Base_info base_info=1; //消息类型
  158. required string command_key=2; //指令唯一标识符id
  159. required Id_struct id_struct=3; //终端id
  160. required int32 lidar_id=4; //雷达id
  161. repeated Cloud_coordinate cloud_coordinates=5; //点云坐标
  162. }
  163. //筛选点云; 答复消息
  164. message Locate_sift_response_msg
  165. {
  166. required Base_info base_info=1; //消息类型
  167. required string command_key=2; //指令唯一标识符id
  168. required Id_struct id_struct=3; //终端id
  169. required int32 lidar_id=4; //雷达id
  170. repeated Cloud_type cloud_type=5; //点云类型
  171. required Error_manager error_manager = 6; //错误码
  172. }