depthai-ros
depthai-ros copied to clipboard
[BUG] Humble ros_bridge does spatial detection missing fields
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: ''
---
Any idea on how to publish the score in the meantime?
Hi, thanks for the report, the fix is available here and will be merged soon
Hello @Serafadam! Was the fix merged to the humble branch?