jsk_recognition_msgs.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. package pjisuv_msgs
  2. import (
  3. "github.com/bluenviron/goroslib/v2/pkg/msg"
  4. "github.com/bluenviron/goroslib/v2/pkg/msgs/geometry_msgs"
  5. "github.com/bluenviron/goroslib/v2/pkg/msgs/sensor_msgs"
  6. "github.com/bluenviron/goroslib/v2/pkg/msgs/std_msgs"
  7. "time"
  8. )
  9. type BoundingBox struct {
  10. msg.Package `ros:"jsk_recognition_msgs"`
  11. Header std_msgs.Header `rosname:"header"`
  12. Pose geometry_msgs.Pose `rosname:"pose"`
  13. Dimensions geometry_msgs.Vector3 `rosname:"dimensions"`
  14. Value float32 `rosname:"value"`
  15. Label uint32 `rosname:"label"`
  16. }
  17. type Accuracy struct {
  18. msg.Package `ros:"jsk_recognition_msgs"`
  19. Header std_msgs.Header
  20. Accuracy float32
  21. }
  22. type BoolStamped struct {
  23. msg.Package `ros:"jsk_recognition_msgs"`
  24. Header std_msgs.Header
  25. Data bool
  26. }
  27. type BoundingBoxArray struct {
  28. msg.Package `ros:"jsk_recognition_msgs"`
  29. Header std_msgs.Header
  30. Boxes []BoundingBox
  31. }
  32. type BoundingBoxArrayWithCameraInfo struct {
  33. msg.Package `ros:"jsk_recognition_msgs"`
  34. Header std_msgs.Header
  35. Boxes BoundingBoxArray
  36. CameraInfo sensor_msgs.CameraInfo
  37. }
  38. type BoundingBoxMovement struct {
  39. msg.Package `ros:"jsk_recognition_msgs"`
  40. Header std_msgs.Header
  41. Box BoundingBox
  42. HandlePose geometry_msgs.Pose
  43. Destination geometry_msgs.PoseStamped
  44. }
  45. type Circle2D struct {
  46. msg.Package `ros:"jsk_recognition_msgs"`
  47. Header std_msgs.Header
  48. Radius float64
  49. X float64
  50. Y float64
  51. }
  52. type Circle2DArray struct {
  53. msg.Package `ros:"jsk_recognition_msgs"`
  54. Header std_msgs.Header
  55. Circles []Circle2D
  56. }
  57. type ClassificationResult struct {
  58. msg.Package `ros:"jsk_recognition_msgs"`
  59. Header std_msgs.Header
  60. Labels []uint32
  61. LabelNames []string
  62. LabelProba []float64
  63. Probabilities []float64
  64. Classifier string
  65. TargetNames []string
  66. }
  67. // type ClusterPointIndices struct {
  68. // msg.Package `ros:"jsk_recognition_msgs"`
  69. // Header std_msgs.Header
  70. // ClusterIndices []pcl_msgs.PointIndices
  71. // }
  72. type ColorHistogram struct {
  73. msg.Package `ros:"jsk_recognition_msgs"`
  74. Header std_msgs.Header
  75. Histogram []float32
  76. }
  77. type ColorHistogramArray struct {
  78. msg.Package `ros:"jsk_recognition_msgs"`
  79. Header std_msgs.Header
  80. Histograms []ColorHistogram
  81. }
  82. type ContactSensor struct {
  83. msg.Package `ros:"jsk_recognition_msgs"`
  84. Header std_msgs.Header
  85. Contact bool
  86. LinkName string
  87. }
  88. type ContactSensorArray struct {
  89. msg.Package `ros:"jsk_recognition_msgs"`
  90. Header std_msgs.Header
  91. Datas []ContactSensor
  92. }
  93. type DepthCalibrationParameter struct {
  94. msg.Package `ros:"jsk_recognition_msgs"`
  95. Coefficients2 []float64
  96. Coefficients1 []float64
  97. Coefficients0 []float64
  98. UseAbs bool
  99. }
  100. type DepthErrorResult struct {
  101. msg.Package `ros:"jsk_recognition_msgs"`
  102. Header std_msgs.Header
  103. U uint32
  104. V uint32
  105. CenterU float32
  106. CenterV float32
  107. TrueDepth float32
  108. ObservedDepth float32
  109. }
  110. type ExifGPSInfo struct {
  111. msg.Package `ros:"jsk_recognition_msgs"`
  112. GpsVersionId [4]uint8
  113. GpsLatitudeRef string
  114. GpsLatitude [3]float64
  115. GpsLongitudeRef string
  116. GpsLongitude [3]float64
  117. GpsAltitudeRef uint8
  118. GpsAltitude float64
  119. GpsTimeStamp float64
  120. GpsSatellites string
  121. GpsStatus string
  122. GpsMeasureMode string
  123. GpfSdop float64
  124. GpsSpeedRef string
  125. GpsSpeed float64
  126. GpsTrackRef string
  127. GpsTrack float64
  128. GpsImgDirectionRef string
  129. GpsImgDirection float64
  130. GpsMapDatum string
  131. GpsDestLatitudeRef string
  132. GpsDestLatitude [3]float64
  133. GpsDestLongitudeRef string
  134. GpsDestLongitude [3]float64
  135. GpsDestBearingRef string
  136. GpsDestBearing float64
  137. GpsDestDistanceRef string
  138. GpsDestDistance float64
  139. GpsDateStamp string
  140. GpsDifferential uint16
  141. GpsHpositioningError float64
  142. }
  143. type ExifTags struct {
  144. msg.Package `ros:"jsk_recognition_msgs"`
  145. InteropIndex string
  146. ImageWidth uint32
  147. ImageHeight uint32
  148. BitsPerSample []uint16
  149. PhotometricInterpretation uint16
  150. ImageDescription string
  151. Make string
  152. Model string
  153. StripOffsets uint32
  154. Orientation uint16
  155. SamplesPerPixel uint16
  156. RowsPerStrip uint32
  157. StripByteCounts uint32
  158. XResolution float64
  159. YResolution float64
  160. PlanarConfiguration uint16
  161. ResolutionUnit uint16
  162. TransferFunction [768]uint16
  163. Software string
  164. DateTime string
  165. Artist string
  166. WhitePoint [2]float64
  167. PrimaryChromaticities [6]float64
  168. TileWidth uint32
  169. TileLength uint32
  170. JpgFromRawStart uint32
  171. JpgFromRawLength uint32
  172. YcbCrCoefficients [3]float64 `rosname:"ycb_cr_Coefficients"`
  173. YcbCrSubSampling [2]uint16
  174. YcbCrPositioning uint16
  175. ReferenceBlackWhite [6]float64
  176. Copyright string
  177. ExposureTime float64
  178. FNumber float64
  179. ExposureProgram uint16
  180. GpsInfo ExifGPSInfo
  181. Iso []uint16
  182. SensitivityType uint16
  183. StandardOutputSensitivity uint32
  184. RecommendedExposureIndex uint32
  185. IsoSpeed uint32
  186. IsoSpeedLatitudeyyy uint32
  187. IsoSpeedLatitudezzz uint32
  188. ExifVersion string
  189. DateTimeOriginal string
  190. DateTimeDigitized string
  191. OffsetTime string
  192. OffsetTimeOriginal string
  193. OffsetTimeDigitized string
  194. ComponentsConfiguration [4]uint8
  195. CompressedBitsPerPixel float64
  196. ShutterSpeedValue float64
  197. ApertureValue float64
  198. BrightnessValue float64
  199. ExposureBiasValue float64
  200. MaxApertureValue float64
  201. SubjectDistance float64
  202. MeteringMode uint16
  203. LightSource uint16
  204. Flash uint16
  205. FocalLength float64
  206. SubjectArea []uint16
  207. UserComment string
  208. SubsecTime string
  209. SubsecTimeOriginal string
  210. SubsecTimeDigitized string
  211. Temperature float64
  212. Humidity float64
  213. Pressure float64
  214. WaterDepth float64
  215. Acceleration float64
  216. CameraElevationAngle float64
  217. FlashPixVersion string
  218. ColorSpace uint16
  219. ExifImageWidth uint16
  220. ExifImageHeight uint16
  221. RelatedSoundFile string
  222. FlashEnergy float64
  223. FocalPlaneXResolution float64
  224. FocalPlaneYResolution float64
  225. FocalPlaneResolutionUnit uint16
  226. SubjectLocation [2]uint16
  227. ExposureIndex float64
  228. SensingMethod uint16
  229. SceneType string
  230. CustomRendered uint16
  231. ExposureMode uint16
  232. WhiteBalance uint16
  233. DigitalZoomRatio float64
  234. FocalLengthIn35mmFilm uint16 `rosname:"focal_length_in_35mm_film"`
  235. SceneCaptureType uint16
  236. GainControl uint16
  237. Contrast uint16
  238. Saturation uint16
  239. Sharpness uint16
  240. SubjectDistanceRange uint16
  241. ImageUniqueId string
  242. CameraOwnerName string
  243. BodySerialNumber string
  244. LensSpecification [4]float64
  245. LensMake string
  246. LensModel string
  247. LensSerialNumber string
  248. CompositeImage uint16
  249. CompositeImageCount [2]uint16
  250. Gamma float64
  251. }
  252. type HandPose struct {
  253. msg.Package `ros:"jsk_recognition_msgs"`
  254. HandScore float32
  255. FingerNames []string
  256. Poses []geometry_msgs.Pose
  257. PointScores []float32
  258. }
  259. type HandPoseArray struct {
  260. msg.Package `ros:"jsk_recognition_msgs"`
  261. Header std_msgs.Header
  262. Poses []HandPose
  263. }
  264. type HeightmapConfig struct {
  265. msg.Package `ros:"jsk_recognition_msgs"`
  266. MinX float32
  267. MaxX float32
  268. MinY float32
  269. MaxY float32
  270. }
  271. type Histogram struct {
  272. msg.Package `ros:"jsk_recognition_msgs"`
  273. Header std_msgs.Header
  274. Histogram []float64
  275. }
  276. type HistogramWithRange struct {
  277. msg.Package `ros:"jsk_recognition_msgs"`
  278. Header std_msgs.Header
  279. Bins []HistogramWithRangeBin
  280. }
  281. type HistogramWithRangeArray struct {
  282. msg.Package `ros:"jsk_recognition_msgs"`
  283. Header std_msgs.Header
  284. Histograms []HistogramWithRange
  285. }
  286. type HistogramWithRangeBin struct {
  287. msg.Package `ros:"jsk_recognition_msgs"`
  288. MinValue float64
  289. MaxValue float64
  290. Count uint32
  291. }
  292. type HumanSkeleton struct {
  293. msg.Package `ros:"jsk_recognition_msgs"`
  294. Header std_msgs.Header
  295. BoneNames []string
  296. Bones []Segment
  297. }
  298. type HumanSkeletonArray struct {
  299. msg.Package `ros:"jsk_recognition_msgs"`
  300. Header std_msgs.Header
  301. HumanIds []std_msgs.Int32
  302. Skeletons []HumanSkeleton
  303. }
  304. type ICPResult struct {
  305. msg.Package `ros:"jsk_recognition_msgs"`
  306. Header std_msgs.Header
  307. Pose geometry_msgs.Pose
  308. Name string
  309. Score float64
  310. }
  311. type ImageDifferenceValue struct {
  312. msg.Package `ros:"jsk_recognition_msgs"`
  313. Header std_msgs.Header
  314. Difference float32
  315. }
  316. type Int32Stamped struct {
  317. msg.Package `ros:"jsk_recognition_msgs"`
  318. Header std_msgs.Header
  319. Data int32
  320. }
  321. type Label struct {
  322. msg.Package `ros:"jsk_recognition_msgs"`
  323. Id int32
  324. Name string
  325. }
  326. type LabelArray struct {
  327. msg.Package `ros:"jsk_recognition_msgs"`
  328. Header std_msgs.Header
  329. Labels []Label
  330. }
  331. type Line struct {
  332. msg.Package `ros:"jsk_recognition_msgs"`
  333. X1 float64
  334. Y1 float64
  335. X2 float64
  336. Y2 float64
  337. }
  338. type LineArray struct {
  339. msg.Package `ros:"jsk_recognition_msgs"`
  340. Header std_msgs.Header
  341. Lines []Line
  342. }
  343. // type ModelCoefficientsArray struct {
  344. // msg.Package `ros:"jsk_recognition_msgs"`
  345. // Header std_msgs.Header
  346. // Coefficients []pcl_msgs.ModelCoefficients
  347. // }
  348. type JskRecognitionObject struct {
  349. msg.Package `ros:"jsk_recognition_msgs"`
  350. Id int32
  351. Name string
  352. ClassId int32
  353. ClassName string
  354. ImageResources []string
  355. MeshResource string
  356. Weight float32
  357. Dimensions geometry_msgs.Vector3
  358. }
  359. type ObjectArray struct {
  360. msg.Package `ros:"jsk_recognition_msgs"`
  361. Header std_msgs.Header
  362. Objects []JskRecognitionObject
  363. }
  364. type PanoramaInfo struct {
  365. msg.Package `ros:"jsk_recognition_msgs"`
  366. Header std_msgs.Header
  367. ProjectionModel string
  368. ImageHeight uint32
  369. ImageWidth uint32
  370. ThetaMin float64
  371. ThetaMax float64
  372. PhiMin float64
  373. PhiMax float64
  374. }
  375. // TODO 暂不支持pcl_msgs
  376. //
  377. // type ParallelEdge struct {
  378. // msg.Package `ros:"jsk_recognition_msgs"`
  379. // Header std_msgs.Header
  380. // ClusterIndices []pcl_msgs.PointIndices
  381. // Coefficients []pcl_msgs.ModelCoefficients
  382. // }
  383. //
  384. // type ParallelEdgeArray struct {
  385. // msg.Package `ros:"jsk_recognition_msgs"`
  386. // Header std_msgs.Header
  387. // EdgeGroups []ParallelEdge
  388. // }
  389. type PeoplePose struct {
  390. msg.Package `ros:"jsk_recognition_msgs"`
  391. LimbNames []string
  392. Poses []geometry_msgs.Pose
  393. Scores []float32
  394. }
  395. type PeoplePoseArray struct {
  396. msg.Package `ros:"jsk_recognition_msgs"`
  397. Header std_msgs.Header
  398. Poses []PeoplePose
  399. }
  400. type PlotData struct {
  401. msg.Package `ros:"jsk_recognition_msgs"`
  402. msg.Definitions `ros:"uint32 SCATTER=1,uint32 LINE=2"`
  403. Header std_msgs.Header
  404. Xs []float32
  405. Ys []float32
  406. Type uint32
  407. Label string
  408. FitLine bool
  409. FitLineRansac bool
  410. }
  411. type PlotDataArray struct {
  412. msg.Package `ros:"jsk_recognition_msgs"`
  413. Header std_msgs.Header
  414. Data []PlotData
  415. NoLegend bool
  416. LegendFontSize float32
  417. MaxX float32
  418. MinX float32
  419. MinY float32
  420. MaxY float32
  421. }
  422. type PointsArray struct {
  423. msg.Package `ros:"jsk_recognition_msgs"`
  424. Header std_msgs.Header
  425. CloudList []sensor_msgs.PointCloud2
  426. }
  427. type PolygonArray struct {
  428. msg.Package `ros:"jsk_recognition_msgs"`
  429. Header std_msgs.Header
  430. Polygons []geometry_msgs.PolygonStamped
  431. Labels []uint32
  432. Likelihood []float32
  433. }
  434. type PosedCameraInfo struct {
  435. msg.Package `ros:"jsk_recognition_msgs"`
  436. Header std_msgs.Header
  437. CameraInfo sensor_msgs.CameraInfo
  438. Offset geometry_msgs.Pose
  439. }
  440. type Rect struct {
  441. msg.Package `ros:"jsk_recognition_msgs"`
  442. X int32
  443. Y int32
  444. Width int32
  445. Height int32
  446. }
  447. type RectArray struct {
  448. msg.Package `ros:"jsk_recognition_msgs"`
  449. Header std_msgs.Header
  450. Rects []Rect
  451. }
  452. type RotatedRect struct {
  453. msg.Package `ros:"jsk_recognition_msgs"`
  454. X float64
  455. Y float64
  456. Width float64
  457. Height float64
  458. Angle float64
  459. }
  460. type RotatedRectStamped struct {
  461. msg.Package `ros:"jsk_recognition_msgs"`
  462. Header std_msgs.Header
  463. Rect RotatedRect
  464. }
  465. type Segment struct {
  466. msg.Package `ros:"jsk_recognition_msgs"`
  467. StartPoint geometry_msgs.Point
  468. EndPoint geometry_msgs.Point
  469. }
  470. type SegmentArray struct {
  471. msg.Package `ros:"jsk_recognition_msgs"`
  472. Header std_msgs.Header
  473. Segments []Segment
  474. }
  475. type SegmentStamped struct {
  476. msg.Package `ros:"jsk_recognition_msgs"`
  477. Header std_msgs.Header
  478. Segment Segment
  479. }
  480. type SimpleHandle struct {
  481. msg.Package `ros:"jsk_recognition_msgs"`
  482. Header std_msgs.Header
  483. Pose geometry_msgs.Pose
  484. HandleWidth float64
  485. }
  486. type SimpleOccupancyGrid struct {
  487. msg.Package `ros:"jsk_recognition_msgs"`
  488. Header std_msgs.Header
  489. Coefficients [4]float32
  490. Resolution float32
  491. Cells []geometry_msgs.Point
  492. }
  493. type SimpleOccupancyGridArray struct {
  494. msg.Package `ros:"jsk_recognition_msgs"`
  495. Header std_msgs.Header
  496. Grids []SimpleOccupancyGrid
  497. }
  498. type SlicedPointCloud struct {
  499. msg.Package `ros:"jsk_recognition_msgs"`
  500. PointCloud sensor_msgs.PointCloud2
  501. SliceIndex uint8
  502. SequenceId uint8
  503. }
  504. type SnapItRequest struct {
  505. msg.Package `ros:"jsk_recognition_msgs"`
  506. msg.Definitions `ros:"uint8 MODEL_PLANE=0,uint8 MODEL_CYLINDER=1"`
  507. Header std_msgs.Header
  508. ModelType uint8
  509. TargetPlane geometry_msgs.PolygonStamped
  510. Center geometry_msgs.PointStamped
  511. Direction geometry_msgs.Vector3Stamped
  512. Radius float64
  513. Height float64
  514. MaxDistance float64
  515. EpsAngle float64
  516. }
  517. type SparseImage struct {
  518. msg.Package `ros:"jsk_recognition_msgs"`
  519. Header std_msgs.Header
  520. Width uint32
  521. Height uint32
  522. Data16 []uint16
  523. Data32 []uint32
  524. }
  525. type SparseOccupancyGrid struct {
  526. msg.Package `ros:"jsk_recognition_msgs"`
  527. Header std_msgs.Header
  528. OriginPose geometry_msgs.Pose
  529. Resolution float32
  530. Columns []SparseOccupancyGridColumn
  531. }
  532. type SparseOccupancyGridArray struct {
  533. msg.Package `ros:"jsk_recognition_msgs"`
  534. Header std_msgs.Header
  535. Grids []SparseOccupancyGrid
  536. }
  537. type SparseOccupancyGridCell struct {
  538. msg.Package `ros:"jsk_recognition_msgs"`
  539. RowIndex int32
  540. Value float32
  541. }
  542. type SparseOccupancyGridColumn struct {
  543. msg.Package `ros:"jsk_recognition_msgs"`
  544. ColumnIndex int32
  545. Cells []SparseOccupancyGridCell
  546. }
  547. type Spectrum struct {
  548. msg.Package `ros:"jsk_recognition_msgs"`
  549. Header std_msgs.Header
  550. Amplitude []float32
  551. Frequency []float32
  552. }
  553. type TimeRange struct {
  554. msg.Package `ros:"jsk_recognition_msgs"`
  555. Header std_msgs.Header
  556. Start time.Time
  557. End time.Time
  558. }
  559. type Torus struct {
  560. msg.Package `ros:"jsk_recognition_msgs"`
  561. Header std_msgs.Header
  562. Failure bool
  563. Pose geometry_msgs.Pose
  564. LargeRadius float64
  565. SmallRadius float64
  566. }
  567. type TorusArray struct {
  568. msg.Package `ros:"jsk_recognition_msgs"`
  569. Header std_msgs.Header
  570. Toruses []Torus
  571. }
  572. type TrackerStatus struct {
  573. msg.Package `ros:"jsk_recognition_msgs"`
  574. Header std_msgs.Header
  575. IsTracking bool
  576. }
  577. type TrackingStatus struct {
  578. msg.Package `ros:"jsk_recognition_msgs"`
  579. Header std_msgs.Header
  580. IsLost bool
  581. }
  582. type VectorArray struct {
  583. msg.Package `ros:"jsk_recognition_msgs"`
  584. Header std_msgs.Header
  585. VectorDim int32
  586. Data []float64
  587. }
  588. type WeightedPoseArray struct {
  589. msg.Package `ros:"jsk_recognition_msgs"`
  590. Header std_msgs.Header
  591. Weights []float32
  592. Poses geometry_msgs.PoseArray
  593. }