-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid number of channels in input image (ov9281 camera) #56
Comments
In the launch file, the Could you run the camera node individually (without the viewer) and subscribe to the raw and compressed topics manually to see if the exceptions originates indeed in the camera node? On the raw topic you can check If this still throws the exception, can you run the node with full debug information and paste the output here? |
I can reproduce this exception in the Terminal A: start ros2 run camera_ros camera_node --ros-args -p format:=YUYV Terminal B: start ros2 run image_view image_view --ros-args -r /image:=/camera/image_raw causes:
The published image encoding is
|
See issue report: ros-perception/image_pipeline#1021 |
Thanks for answer, @christianrauch! I check
Open camera.launch.py and change:
After this it works! Or manually run:
|
The launch file has a parameter
In any case, this is a bug in the image viewer node. I am going to close this since the issue is unrelated to the camera node. |
Hi all!
I use this mono camera:
https://www.waveshare.com/OV9281-160-Camera.htm
After launching:
ros2 launch camera_ros camera.launch.py
I get this output:
I fixed the compressImageMsg function in the CameraNode.cpp file:
but it had no effect
Where can I be wrong and how can I see the
cv_ptr->encoding
?The text was updated successfully, but these errors were encountered: