I am using a USB camera with a Jetson Orin Nano to run yolo. I start my usb cam and remap the output topic to /image and /camera_info. I then followed the yolo quickstart but do not get any output. I have attached my rqt graph. I ran the command ros2 launch isaac_ros_yolov8 isaac_ros_yolov8_visualize.launch.py with the both the model and engine file paths specified.
Hello @kohmacht thanks for your post. It seems like you’ve encountered the issue of topic name mismatch. Based on the rqt_graph
you provided reveals that while the isaac_ros_yolov8_visualize
launch file is expecting input on the /image
topic, your usb_cam
node is still publishing its image data to a different topic /image_raw
. Because these topics do not match, the YOLO detector node never receives any images from your camera, which is why you are not getting any output.
Not sure how you remapped the output topic, but there are two ways you could try.
-
Correcting the Launch File: Edit the launch file you use to start the
usb_cam
node.
You can add aremappings
block to explicitly change the topic name.
remappings=[ (‘/image_raw’, ‘/image’) ] -
Using the Command Line: Run the node as
ros2 run usb_cam usb_cam_node --ros-args --remap /image_raw:=/image
After applying either of these changes, you can verify that the image topic has been successfully remapped to /image
by running ros2 run image_view image_view
. A window should pop up showing the live video feed from your camera, which visually confirms that the topic is now correct and publishing data. Then you can continue to the next step of YOLO detector.
Hi, I used the second option to remap the topic. I figured out that the yolo model file was not properly configured and rebuilt the plan file to fix it. It worked for me.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.