globalmsg.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. syntax = "proto2";
  2. package globalmsg;
  3. message msg
  4. {
  5. required type msg_type=1;
  6. optional laserMsg laser_msg=2;
  7. optional plcMsg plc_msg=3;
  8. optional algMsg alg_msg=4;
  9. optional SysMsg sys_msg=5;
  10. }
  11. enum type
  12. {
  13. ePLC=0;
  14. eLaser=1;
  15. eAlg=2;
  16. eLog=3;
  17. }
  18. enum laserStatus
  19. {
  20. eLaserConnected=0;
  21. eLaserDisconnected=1;
  22. eLaserBusy=2;
  23. eLaserUnknown=3;
  24. }
  25. message laserMsg
  26. {
  27. optional laserStatus laser_status=1;
  28. optional int32 queue_data_count=2;
  29. optional int32 cloud_count=3;
  30. required int32 id=4;
  31. }
  32. enum plcStatus
  33. {
  34. ePLCConnected=0;
  35. ePLCDisconnected=1;
  36. ePLCRefused=2;
  37. ePLCUnknown=3;
  38. }
  39. message plcMsg
  40. {
  41. optional plcStatus plc_status=1;
  42. repeated int32 plc_values=2;
  43. }
  44. message resultInfo
  45. {
  46. required string time=1 [default=""];
  47. required bool correctness=2;
  48. optional int32 park_space_id=3;
  49. optional int32 laser_ids=4;
  50. optional double x=5;
  51. optional double y=6;
  52. optional double c=7;
  53. optional double wheel_base=8;
  54. optional double length=9;
  55. optional double width=10;
  56. optional double height=11;
  57. optional string error=12 [default=""];
  58. optional double front_theta=13;
  59. }
  60. message algMsg
  61. {
  62. repeated resultInfo result=1;
  63. optional int32 thread_queue_size=2;
  64. optional string log_path=3 [default=""];
  65. }
  66. enum logLevel
  67. {
  68. eSysInfo=0;
  69. eSysLog=1;
  70. eSysWarning=2;
  71. eSysError=3;
  72. }
  73. message SysMsg
  74. {
  75. required string log=1 [default=""];
  76. optional logLevel level=2 [default=eSysInfo];
  77. }