RoboStack / ros-foxy

ros foxy vinca files
8 stars 12 forks source link

ros2 run image_tools cam2image Raspberry Pi 4B #20

Closed DedieuPY closed 2 years ago

DedieuPY commented 2 years ago

Hello,

I have the following issue when I try "ros2 run image_tools cam2image" on a Raspberry Pi 4B : [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory. [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created I am on a Raspberry Pi 4B 4GB, with a pycam V.2 and I use ros2 foxy. I follwoed this tutorial : https://medium.com/swlh/raspberry-pi-ros-2-camera-eef8f8b94304

Does someone know how to solve it? I'm quite new with raspberry and Ros so tell me if you need more informations.

Thank you!!

DedieuPY commented 2 years ago

Ok so i found a solution.

Just had to do : sudo raspi-config --> Interface Option --> Enable Legacy Camera And then, reboot