perception_msgs.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package kinglong_msgs
  2. import (
  3. "github.com/bluenviron/goroslib/v2/pkg/msg"
  4. "github.com/bluenviron/goroslib/v2/pkg/msgs/std_msgs"
  5. )
  6. type PerceptionObjects struct {
  7. msg.Package `ros:"perception_msgs"`
  8. Header Header
  9. Objs []Object
  10. Cells []ObstacleCell
  11. }
  12. type Object struct {
  13. msg.Package `ros:"perception_msgs"`
  14. Id uint32
  15. X float32
  16. Y float32
  17. Z float32
  18. Vxrel float32
  19. Vyrel float32
  20. Xabs float64
  21. Yabs float64
  22. Vxabs float32
  23. Vyabs float32
  24. Width float32
  25. Length float32
  26. Height float32
  27. Speed float32
  28. Heading float32
  29. Type uint8
  30. Source uint8
  31. Confidence float32
  32. Age uint32
  33. Velocitystatus uint8
  34. Cells []ObstacleCell
  35. }
  36. type ObstacleCell struct {
  37. msg.Package `ros:"perception_msgs"`
  38. Idc int32
  39. X float64
  40. Y float64
  41. Xg float64
  42. Yg float64
  43. }
  44. type PerceptionLocalization struct {
  45. msg.Package `ros:"perception_msgs"`
  46. Header std_msgs.Header
  47. FrameUnmber uint64
  48. FusionLevel int8
  49. Status int8
  50. Roll float64
  51. Pitch float64
  52. Yaw float64
  53. RollStd float32
  54. PitchStd float32
  55. YawStd float32
  56. Qw float64
  57. Qx float64
  58. Qy float64
  59. Qz float64
  60. AngularVelocityX float64
  61. AngularVelocityY float64
  62. AngularVelocityZ float64
  63. Latitude float64
  64. Longitude float64
  65. Altitude float64
  66. LatitudeStd float32
  67. LongitudeStd float32
  68. AltitudeStd float32
  69. PositionX float64
  70. PositionY float64
  71. PositionZ float64
  72. PositionXStd float32
  73. PositionYStd float32
  74. PositionZStd float32
  75. VelocityX float64
  76. VelocityY float64
  77. VelocityZ float64
  78. VelocityXStd float32
  79. VelocityYStd float32
  80. VelocityZStd float32
  81. VelocityRx float64
  82. VelocityRy float64
  83. VelocityRz float64
  84. VelocityRxStd float32
  85. VelocityRyStd float32
  86. VelocityRzStd float32
  87. AccelX float64
  88. AccelY float64
  89. AccelZ float64
  90. }