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

detectnet directly from ros topic #110

Closed tbroed closed 1 year ago

tbroed commented 1 year ago

Hallo,

I am trying to set up a detection directly on a ros topic /camera/image_raw.

I checked that the topic is the correct message type: rostopic type /camera/image_raw -> sensor_msgs/Image

When starting detectnet with: roslaunch ros_deep_learning detectnet.ros1.launch /detectnet/image_in:=/camera/image_raw

I get the following error: [gstreamer] gstDecoder -- failed to retrteve next image buffer [ERROR] [1639131012.608583917]: failed to capture next frame

How do I fix this and am I doing anything wrong?

Best, Tim

dusty-nv commented 1 year ago

@tbroed I think you should try removing the video_source portions of detectnet.ros1.launch since you are already running your own camera

tbroed commented 1 year ago

Thanks, together with changing the remapping to my topic did do the trick.