Extracting depth images using rosrun command using realsense camera
I entered this command to extract depth images from intel realsense R200 camera:
rosrun image_view extract_images _sec_per_frame:=0.01 image:=/camera/depth/image_raw
I wasn't able to get the images, instead showed this error:
[ERROR] [1529053683.952956798]: Unable to convert 16UC1 image to bgr8
[ WARN] [1529053683.953020485]: Couldn't save image, no data!
When i entered this command for color images, it worked:
rosrun image_view extract_images _sec_per_frame:=0.01 image:=/camera/color/image_raw
How can this issue be resolved?
Can you list all the published image topics? You cannot extract from image:=/camera/depth/image_raw because the format needed for extract_images is different. Maybe there is different topic like depth_registered or depth_rect...I have used the zed camera and had faced similar problems.
I tried for dpeth_registered and depth_rectify but I think i need to provide encoding for depth images.