Closed izeemeen closed 4 months ago
Can you provide details about your hardware (which camera) and software (Linux distribution and libcamera version) setup?
The formats nv21
and nv24
are not supported by the cv_bridge (yet). You have to choose a different format or manually decode the raw image data. In this particular case, the format is autoselected which is then not compatible with the rest of the pipeline.
I recommend launching the node manually with your desired configuration, either by your own launch file or simply by ros2 run
. If you are up for it, you can add the format
parameter to the launch file, after width
and height
, and send a PR. This way, you can reuse the launch file with a different pixel format.
Thank you @christianrauch! I added "format" and it worked.
Hi all! The following error occurs when launching a camera.launch file:
ros2 launch camera_ros camera.launch.py
Can you tell me how I can fix it?