How do you config Darknet_Ros (yolo) to see a camera topic?

asked 2019-02-11 08:48:08 -0600

cerebraldad gravatar image

I have yolo running on a server and the robot publishing a usb camera topic /usb_cam/image_raw - i am able to see the image in rviz, but I get a continuous "waiting for image" message from the darknet_ros package after i configure the ros.yml file to subscribe to the same topic. I tried running all the launch files with no success. Im not using a GPU, yet - I was just testing with a CPU but it cant seem to subscribe to the image topic.

Thanks for your help. The git repo doesn't seem to be responding to issues.

edit retag flag offensive close merge delete


I would recommend using rosnode info <node_name> on both yolo and the camera node, to confirm they are on the same topic and namespace.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-02-11 09:42:29 -0600 )edit

@PeteBlackerThe3rdrosnode info /usb_cam shows no subscribers: Subscriptions: None but /darknet_ros shows /usb_cam/image_raw [sensor_msgs/Image] in subscriptions

cerebraldad gravatar image cerebraldad  ( 2019-02-12 11:54:11 -0600 )edit

/usb_cam and /usb_cam/image_raw are different topic names. You will have to remap the topic on one of these nodes so that they are connected.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-02-12 12:18:20 -0600 )edit

you said rosnode above. I'm confused.

cerebraldad gravatar image cerebraldad  ( 2019-02-12 14:57:56 -0600 )edit

@cerebraidad I'm having the same problem. Did you solve yours?

distro gravatar image distro  ( 2023-01-13 22:29:14 -0600 )edit