Connecting a camera to a Raspberry Pi running ROS2 Foxy

asked 2022-08-01 15:15:34 -0500

jpabla gravatar image

I am a beginner looking to get into ROS. I've been trying to set up a very simple system with a Raspberry Pi 4, a webcam, and ROS2 Foxy. My initial goal is to just capture camera data into rosbags, but I've been struggling to do so.

I've set up ROS2 on top of Ubuntu 20.04 according to the provided information on this website:

I've been trying to set up the camera through OpenCV using this guide:

When I run the publisher node, the camera lights up to indicate it is streaming, but no window pops up with camera images. Furthermore, the subscriber node doesn't work. Instead, it returns "no executable found."

Is OpenCV the best way to achieve my goal or is there some other library or method I should be using? I'm just looking for any guidance to figure out what I need to do.

edit retag flag offensive close merge delete