realsense-ros: cv_bridge exception: '[16UC1] is not a color format. but [bgr8] is.
using realsense D415 on librealsense 2.22, FW 5.11.4, and realsense_ros v2.2.4. Tested with two different realsenses.
When I run roslaunch realsense2_camera rs_camera.launch
, I continuously get the following:
cv_bridge exception: '[16UC1] is not a color format. but [bgr8] is. The conversion does not make sense'
When I launch realsense-viewer everything seems to be as expected and I can view all the streams in RViz.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (3 by maintainers)
The listener is not using the right conversion. If that indeed is rosbag, it might be a bug within rosbag itself.
As written above in my last comment, I resolved the issue by stopping all listeners that were subscribing to the image topic. In our case this was a monitoring service running in the background. Run
rostopic info
on the camera topic and it’ll give you a list of subscribers. Your listener probably is doing some conversion wrong, but I don’t know exactly what.