How do you config Darknet_Ros (yolo) to see a camera topic?
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.
Asked by cerebraldad on 2019-02-11 09:48:08 UTC
Comments
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.Asked by PeteBlackerThe3rd on 2019-02-11 10:42:29 UTC
@PeteBlackerThe3rd
rosnode info /usb_cam
shows no subscribers:Subscriptions: None
but/darknet_ros
shows/usb_cam/image_raw [sensor_msgs/Image]
in subscriptionsAsked by cerebraldad on 2019-02-12 12:54:11 UTC
/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.Asked by PeteBlackerThe3rd on 2019-02-12 13:18:20 UTC
you said
rosnode
above. I'm confused.Asked by cerebraldad on 2019-02-12 15:57:56 UTC
@cerebraidad I'm having the same problem. Did you solve yours?
Asked by distro on 2023-01-13 23:29:14 UTC