communication.proto 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. syntax = "proto2";
  2. enum Tof3dFunctional {
  3. SearchDevice = 1;
  4. ConnectDevice = 2;
  5. ConnectAllEtcDevices = 3;
  6. ConnectAllSearchDevices = 4;
  7. DisConnectDevice = 5;
  8. DisConnectAllEtcDevices = 6;
  9. DisConnectAllSearchDevices = 7;
  10. getDepthFrame = 8;
  11. getIrFrame = 9;
  12. getDepthAndIrPicture = 10;
  13. getDepthPointCloud = 11;
  14. DepthFrame2PointCloud = 12;
  15. Frame2Mat = 13;
  16. }
  17. enum Tof3dVzFrameType {
  18. Tof3dVzDepthFrame = 0;
  19. Tof3dVzIRFrame = 1;
  20. }
  21. enum Tof3dVzPixelFormat {
  22. Tof3dVzPixelFormatDepthMM16 = 0;
  23. Tof3dVzPixelFormatGray8 = 2;
  24. }
  25. message Tof3dVzFrame {
  26. required uint32 frameIndex = 1;
  27. required Tof3dVzFrameType frameType = 2;
  28. required Tof3dVzPixelFormat pixelFormat = 3;
  29. repeated uint32 pFrameData = 4;
  30. required uint32 dataLen = 5;
  31. required float exposureTime = 6;
  32. required uint32 depthRange = 7;
  33. required uint32 width = 8;
  34. required uint32 height = 9;
  35. required uint64 deviceTimestamp = 10;
  36. }
  37. message Tof3dVzVector3f {
  38. required int32 x = 1;
  39. required int32 y = 2;
  40. required int32 z = 3;
  41. }
  42. message Tof3dMat {
  43. repeated uint32 data = 1;
  44. required int32 size = 2;
  45. required int32 rows = 3;
  46. required int32 cols = 4;
  47. required uint32 type = 5;
  48. required uint64 stamp = 10;
  49. }
  50. message Tof3dFunctionalParams {
  51. optional int64 error_code = 1;
  52. optional int64 error_level = 2;
  53. optional string error_string = 3;
  54. optional string ip = 4;
  55. optional double search_time = 5;
  56. optional bool open_stream = 6;
  57. optional Tof3dVzFrame depthFrame = 7;
  58. optional Tof3dVzFrame irFrame = 8;
  59. repeated Tof3dVzVector3f depthCloud = 9;
  60. repeated Tof3dVzVector3f irCloud = 10;
  61. optional Tof3dMat depthMat = 11;
  62. optional Tof3dMat irMat = 12;
  63. }
  64. message Tof3dCommunicatonProtocol
  65. {
  66. required Tof3dFunctional func = 1;
  67. required Tof3dFunctionalParams func_params = 2;
  68. }