perception_msgs.go 2.0 KB

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