mgonzs13 / yolo_ros

Ultralytics YOLOv8, YOLOv9, YOLOv10, YOLOv11 for ROS 2
GNU General Public License v3.0
336 stars 89 forks source link

No image in Rviz2 using realsense camera! #35

Closed user-redans closed 5 months ago

user-redans commented 6 months ago

Hello,

I've tried to launch 'yolov8_bringup/yolov8.launch.py' but I have encountered an issue on Rviz2 yolo topic vizualization, see image below: 10

There is not any camera image from topic /yolo/dbg_image...You can see below a screenshoot with log terminal information: 2

This is a list with all my ROS2-humble available topics: 3

And some info's about my Jetson AGX Xavier that I'm using, with Jetpack 5.1.3: 4

I'm using a Intel RealSense camera, model D415.

I don't know what I'm missing? Do you have any suggestions?

mgonzs13 commented 6 months ago

Hi @user-redans, which camera topic are you using? In your image, there are two topics. You may be publishing your realsense images in the /camera/camera/color/image_rawand yolov8 is subscribed to the ```/camera/rgb/image_raw/ topic. Check also the QoS of the topics. You can modify both the image topic and the QoS using the launch params, take a look at the README.

user-redans commented 6 months ago

Hi @user-redans, which camera topic are you using? In your image, there are two topics. You may be publishing your realsense images in the /camera/camera/color/image_rawand yolov8 is subscribed to the ```/camera/rgb/image_raw/ topic. Check also the QoS of the topics. You can modify both the image topic and the QoS using the launch params, take a look at the README.

I'm using default topic value, in launch .py script: "/camera/camera/color/image_raw" and image_reliability = 1 But I've tried with 0 and 2 on image_reliability and the result is the same

user-redans commented 6 months ago

Topic "/camera/rgb/image_raw/" vizualization is also wrong, see image below: 11

user-redans commented 6 months ago

This is my graph with all nodes and topics(rqt_graph), see image below:

rqt1

mgonzs13 commented 6 months ago

In the rqt_graph, you are using the topic /camera/rgb/image_raw instead of /camera/camera/color/image_raw. There are new changes in the repository; could you try to see if they work for you?

user-redans commented 6 months ago

It didn't work! See my new graph: rqt3

mgonzs13 commented 6 months ago

How are you launching it? It would be best if you were using something similar to this: ros2 launch yolov8_bringup yolov8.launch.py input_image_topic:=/camera/camera/color/image_raw image_reliability:=1.

user-redans commented 6 months ago

I've launched with the same command line as you told me, but didn't work! In Rviz2 only this topic "/camera/camera/color/image_raw" works, see image below: rviz10

I've used this command line for camera launching: ros2 launch realsense2_camera rs_launch.py

mgonzs13 commented 6 months ago

Can you show me your rqt_graoh again after launching the command?

mgonzs13 commented 5 months ago

Hi @user-redans, how is this going?