intel / ros2_openvino_toolkit

Apache License 2.0
163 stars 83 forks source link

Interpretation of RosTopic #309

Closed NorrieDS closed 6 months ago

NorrieDS commented 6 months ago

Thank you very much for building such an excellent toolkit! I am currently using its object segmentation in my project and have successfully launched openvino_node for segmentation with an HRNet model. Now, I would like to use the published segmentation results in my custom node for further processes and checked the contents of the topic:

ros2 topic echo /ros2_openvino_toolkit/segmented_objects

header: stamp: sec: 47 nanosec: 634000000 frame_id: camera_color_optical_frame objects_vector:

Having expected an array ascribing each pixel to a class, I do not understand what this data means. "probability: -1.0" in the header looks mysterious to me as well. Could anyone explain what the topic represents and/or show me how I can convert this to a segmentation map in the cv::Mat format? Thank you very much for your help!

NorrieDS commented 6 months ago

I noticed that I should subscribe to /ros2_openvino_toolkit/image_rviz rather.