Closed ludovicoderic closed 3 years ago
Hey, how did you solve this? I am facing the same issue
In my case it was a problem with the publisher that I had on ROS2 on windows, and the subscriber in WSL Dashing, since I was able to make a ros2 topic echo on WSL and see the data being published, but I was unable for some reason to subscribe to it. That being said, I ended making another publisher that send the data of the image that I needed properly, and to make sure that from a standar topic on ROS2 dashing I was able to subcribe to it and see the image. Once I properly send the image topic, it did work as espected.
I habe Ubuntu 18.04 and ROS1 Melodic and ROS2 dashing, and I tried making this package run on ROS2 dashing, but i couldn't make it.
The steps I did are the following one:
After that, the pachage builds correctly, but when runing
ros2 launch darknet_ros darknet_ros.launch.py
(with or without changing the directories of the topic to subscribe to), it gets stuck loading weights as so:Then after a few minutes (2-3 min) without displaying anything else besides the loading weights line, it displays dozens of
[darknet_ros-1] Waiting for image.
, but the image is being published onto the /camera/rgb/camera_raw topic, so it shouldn't be neccesary to change the path onto darknet_ros.launch.py, YoloObjectDetector.cpp and ros.yaml. Also, by doing a ros2 topic echo /camera/rgb/camera_raw, I can see how the data it's being published correctly, and its of type sensor_msgs/msg/Image.