dusty-nv / ros_deep_learning

Deep learning inference nodes for ROS / ROS2 with support for NVIDIA Jetson and TensorRT
862 stars 258 forks source link

bbox information via the /detectnet/detections topic using a subscibrer #127

Closed kleanbotmk2 closed 10 months ago

kleanbotmk2 commented 11 months ago

Hello,

I wanted to know how I could retrieve bbox information via the /detectnet/detections topic using a subscibrer. I use a node in python under ros2 foxy. Otherwise I wanted to thank you because the package works very well!

Best regards,

Sacha

dusty-nv commented 11 months ago

Hi @kleanbotmk2, the message type of that topic is vision_msgs/Detection2DArray:

http://docs.ros.org/en/api/vision_msgs/html/msg/Detection2DArray.html

kleanbotmk2 commented 11 months ago

Hi,

Thanks you @dusty-nv for your answer but do you know how can I extract the bbox informations from this type of message ?

dusty-nv commented 11 months ago

I don't have an example of doing it with rospy, but subscribing to topics and dealing with standard messages is a typical ROS thing. It's not a custom message type. You can see how I construct the messages in the C++ code for the detectnet node though:

https://github.com/dusty-nv/ros_deep_learning/blob/master/src/node_detectnet.cpp

kleanbotmk2 commented 10 months ago

okay thanks you it's working