depthai-ros icon indicating copy to clipboard operation
depthai-ros copied to clipboard

[BUG] Humble ros_bridge does spatial detection missing fields

Open kikass13 opened this issue 1 year ago • 3 comments

Describe the bug Humble implementation of the ros msg converter does not provide a score value for spatial detections

Expected behavior The score value should be set into the ros msg

Additional context CLICK ME - The Line in code where the fix should be added

something like this should be added in the IS_HUMBLE ifdef

opDetectionMsg.detections[i].results[0].score = inNetData->detections[i].confidence;

which results in a ros2 topic echo like this:

header:
  stamp:
    sec: 1717864050
    nanosec: 427740811
  frame_id: oak_rgb_camera_optical_frame
detections:
- results:
  - class_id: '0'
    score: 8.31591796875
  bbox:
    center:
      position:
        x: 78.0
        y: 250.0
      theta: 0.0
    size_x: 200.0
    size_y: 252.0
  position:
    x: -0.19737829267978668
    y: -0.07760991901159286
    z: 0.5516734719276428
  is_tracking: false
  tracking_id: ''
---

kikass13 avatar Jun 08 '24 16:06 kikass13

Any idea on how to publish the score in the meantime?

sagarvl96 avatar Jul 25 '24 13:07 sagarvl96

Hi, thanks for the report, the fix is available here and will be merged soon

Serafadam avatar Jul 29 '24 11:07 Serafadam

Hello @Serafadam! Was the fix merged to the humble branch?

sagarvl96 avatar Aug 07 '24 06:08 sagarvl96