dispatch_parameter.proto 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. syntax = "proto2";
  2. package Dispatch_proto;
  3. message Catcher_parameter
  4. {
  5. required int32 id = 1;
  6. required int32 key = 2;
  7. }
  8. message Carrier_parameter
  9. {
  10. required int32 id = 1;
  11. required int32 key = 2;
  12. }
  13. message Passageway_parameter
  14. {
  15. required int32 id = 1;
  16. required int32 key = 2;
  17. }
  18. message Dispatch_device_parameter_all
  19. {
  20. required int32 catcher_size=1;
  21. repeated Catcher_parameter catcher_parameters=2;
  22. required int32 carrier_size=3;
  23. repeated Carrier_parameter carrier_parameters=4;
  24. required int32 passageway_size=5;
  25. repeated Passageway_parameter passageway_parameters=6;
  26. }
  27. /*
  28. Packspace_coordinates id 的表示含义
  29. 1~165 2楼~12楼的停车位
  30. 1100 0号出口(在一楼)(目前没有)
  31. 1101~1106 1~6号出入口 (在一楼)
  32. 1107 7号出口(在一楼)
  33. 1201~1206 1~6号出入口上方2楼处
  34. 1301~1306 1~6号出入口上方3楼处
  35. 1401~1406 1~6号出入口上方4楼处
  36. 2101~2112 左侧电梯井(1楼~12楼)(一号搬运器的待机点)
  37. 2201~2212 右侧电梯井(1楼~12楼)(二号搬运器的待机点)
  38. (由于工程问题, 每一个车位的x值略有不同, 不是等比数列)
  39. */
  40. //楼上车位的坐标 1~165
  41. message Packspace_coordinates_parameter
  42. {
  43. optional int32 id = 1[default = 0];
  44. optional int32 x = 2[default = 0];
  45. optional int32 y = 3[default = 0];
  46. optional int32 z = 4[default = 0];
  47. }
  48. //一楼出入口的坐标 1100~1107
  49. message Passageway_coordinates_parameter
  50. {
  51. optional int32 id = 1[default = 0];
  52. optional int32 x = 2[default = 0];
  53. optional int32 y = 3[default = 0];
  54. optional int32 z = 4[default = 0];
  55. }
  56. //搬运器在2~4楼交界处 的坐标 1201~1206 1301~1306 1401~1406
  57. //搬运器在电梯井的坐标 2101~2112 2201~2212
  58. //机器手在一楼出入口的坐标 1100 和 1107
  59. message Carrier_coordinates_parameter
  60. {
  61. optional int32 id = 1[default = 0];
  62. optional int32 x = 2[default = 0];
  63. optional int32 y = 3[default = 0];
  64. optional int32 z = 4[default = 0];
  65. }
  66. //机器手在2~4楼交界处 的坐标 1201~1206 1301~1306 1401~1406
  67. //机器手在一楼出入口的坐标 1101~1106
  68. message Catcher_coordinates_parameter
  69. {
  70. optional int32 id = 1[default = 0];
  71. optional int32 x = 2[default = 0];
  72. optional int32 y = 3[default = 0];
  73. optional int32 z = 4[default = 0];
  74. }
  75. //注意了, 搬运器和机器手在同层的z轴坐标是不同的, 机器手比搬运器高一点.
  76. //x轴和y必须相同,
  77. //搬运器和机器手交接时 使用汽车前轮对齐, 搬运器的Y1固定不同, 所以其他的3个夹杆需要根须轴距来计算.
  78. //搬运器 限定范围
  79. message Carrier_box_parameter
  80. {
  81. optional int32 x_min = 1[default = -1000000];
  82. optional int32 x_max = 2[default = 1000000];
  83. optional int32 y_min = 3[default = -1000000];
  84. optional int32 y_max = 4[default = 1000000];
  85. optional int32 z_min = 5[default = -1000000];
  86. optional int32 z_max = 6[default = 1000000];
  87. }
  88. //机器手 限定范围
  89. message Catcher_box_parameter
  90. {
  91. optional int32 x_min = 1[default = -1000000];
  92. optional int32 x_max = 2[default = 1000000];
  93. optional int32 y_min = 3[default = -1000000];
  94. optional int32 y_max = 4[default = 1000000];
  95. optional int32 z_min = 5[default = -1000000];
  96. optional int32 z_max = 6[default = 1000000];
  97. }
  98. message Axis_range_parameter
  99. {
  100. optional int32 min = 1[default = -1000000];
  101. optional int32 max = 2[default = 1000000];
  102. }
  103. //出入口的功能模式
  104. enum Passageway_functioning_pattern
  105. {
  106. PASSAGEWAY_FUNCTIONING_PATTERN_UNKNOWN = 0; //未知
  107. PASSAGEWAY_FUNCTIONING_PATTERN_INLET = 1; //单向入口
  108. PASSAGEWAY_FUNCTIONING_PATTERN_OUTLET = 2; //单向出口
  109. PASSAGEWAY_FUNCTIONING_PATTERN_BIDIRECTION = 3; //双向口
  110. }
  111. message Parkspace_number
  112. {
  113. required int32 rows = 1;
  114. required int32 columns = 2;
  115. required int32 total = 3;
  116. required int32 liftway_width = 4;
  117. }
  118. message Dispatch_coordinates_parameter_all
  119. {
  120. repeated Packspace_coordinates_parameter packspace_coordinates_parameters = 1;
  121. repeated Passageway_coordinates_parameter passageway_coordinates_parameters = 2;
  122. repeated Carrier_coordinates_parameter carrier_coordinates_parameters = 3;
  123. repeated Catcher_coordinates_parameter catcher_coordinates_parameters = 4;
  124. optional Carrier_box_parameter carrier_box_parameters = 5;
  125. optional Catcher_box_parameter catcher_box_parameters = 6;
  126. optional int32 catcher_b_min = 7;
  127. optional int32 catcher_b_max = 8;
  128. optional int32 catcher_d1_min = 9;
  129. optional int32 catcher_d1_max = 10;
  130. optional int32 catcher_d2_min = 11;
  131. optional int32 catcher_d2_max = 12;
  132. optional int32 default_wheelbase = 13;
  133. optional int32 catcher_1th_floor_z = 14;
  134. optional int32 catcher_2th_floor_z = 15;
  135. optional int32 catcher_3th_floor_z = 16;
  136. optional int32 catcher_4th_floor_z = 17;
  137. optional int32 carrier_1th_floor_z = 18;
  138. optional int32 carrier_2th_floor_z = 19;
  139. optional int32 carrier_3th_floor_z = 20;
  140. optional int32 carrier_4th_floor_z = 21;
  141. optional int32 catcher_d1_d2_distance = 22;
  142. optional int32 catcher_wheel_base_limit = 23;
  143. optional int32 carrier_y_y1_distance = 24;
  144. optional int32 carrier_default_y1_back = 25;
  145. optional int32 carrier_default_y1_leave = 26;
  146. optional int32 carrier_default_y_back = 27;
  147. optional int32 carrier_default_y_leave = 28;
  148. optional int32 carrier_default_x_left = 29;
  149. optional int32 carrier_default_x_right = 30;
  150. optional int32 passageway_terminal_id_min = 31;
  151. optional int32 passageway_terminal_id_max = 32;
  152. optional int32 passageway_terminal_number = 33;
  153. repeated Passageway_functioning_pattern passageway_functioning_patterns = 34;
  154. optional int32 parkspace_id_min = 35;
  155. optional int32 parkspace_id_max = 36;
  156. optional int32 parkspace_id_total = 37;
  157. optional int32 third_floor_parkspace_id_min = 38;
  158. optional int32 third_floor_parkspace_id_max = 39;
  159. optional int32 third_floor_parkspace_id_total = 40;
  160. optional int32 car_wheel_base_min = 41;
  161. optional int32 car_wheel_base_max = 42;
  162. required Parkspace_number parkspace_number=43;
  163. optional int32 m_separated_distance_z=44;
  164. optional int32 m_separated_distance_x=45;
  165. }