Open nwissner-bdai opened 6 months ago
Hey @agonzat, thanks for sharing your solution. I can confirm it also resolves my ffmpeg issue.
As for the following error @edgarcamilocamacho
[realsense2_camera_node-1] [ERROR] [1715629297.743316357] [CompressedPublisher]: [16UC1] is not a color format. but [mono8] is. The conversion does not make sense
I was able to find a solution by setting the following image transport parameters in my config and subscribing to the /camera/depth/image_rect_raw/compressed
topic:
.camera.depth.image_rect_raw.format: png
.camera.depth.image_rect_raw.compressed.format: png # can also be jpeg
.camera.depth.image_rect_raw.compressedDepth.format: png
I did discover that setting the .camera.depth.image_rect_raw.format: png
parameter resolves the error message, i am unable to view the stream in neither foxglove studio nor rviz2, even though there seems to be some message on its topic.
Furthermore, I abandoned the -map
and republishing via intra process communication in place of agonzats solution. The process I was following is as follows:
realsense-ros(IPC) --> repub-raw(IPC) --> sub-raw-pub-ffmpeg-image-transport
Issue Description
When running the realsense2_camera, the
camera/camera/color/image_raw
andcamera/camera/depth/image_rect_raw
topics are echoing data just fine, but when trying to echo any data on the compressed topics, I am getting errors such as:When echoing
image_raw/compressed
data, and:When echoing
image_rect_raw/compressed
data.