IntelRealSense / realsense-ros

ROS Wrapper for Intel(R) RealSense(TM) Cameras
http://wiki.ros.org/RealSense
Apache License 2.0
2.49k stars 1.74k forks source link

no depth information published by d435i #2136

Closed Abirami-Segar closed 2 years ago

Abirami-Segar commented 2 years ago

hi

i am using intelrealsense d435i and in the rs_camera.launch file, i have enabled the depth information. but when i roslaunch this file, i get to see that the topic /camera/depth/image_rect_raw is subscribed.(i can see the topic when i command 'rostopic list', but when i echo the same rostopic, i see no information Screenshot from 2021-10-25 23-41-41 . Screenshot from 2021-10-25 23-41-48 Screenshot from 2021-10-25 23-41-51 Screenshot from 2021-10-25 23-41-57

)

please help.

Thank you.

MartyG-RealSense commented 2 years ago

Hi @Abirami-Segar It looks as though the rs_camera.launch file has been modified from its defaults to set depth and infrared to 640x480 instead of '-1'. Is this correct, please?

If the launch file has been modified then the launch would be considered to be invalid and the default stream configuration of the camera would likely be applied instead. This is because from ROS wrapper version 2.2.22 onwards, three factors have to be provided in a custom stream configuration for each stream type used - width, height and FPS. Although width and height have been custom-configured at 640x480 in the launch file, a custom FPS value for depth - depth_fps - has not been defined and remains as '-1'.

image

Please try the custom roslaunch instruction below to see whether depth is published correctly in rostopic echo when using this launch.

roslaunch realsense2_camera rs_camera.launch depth_width:=640 depth_height:=480 depth_fps:=30

Abirami-Segar commented 2 years ago

Thanks for the reply. Issue solved. Thanks for the support

On Tue, 26 Oct 2021, 09:44 MartyG-RealSense, @.***> wrote:

Hi @Abirami-Segar https://github.com/Abirami-Segar It looks as though the rs_camera.launch file has been modified from its defaults to set depth and infrared to 640x480 instead of '-1'. Is this correct, please?

If the launch file has been modified then the launch would be considered to be invalid and the default stream configuration of the camera would likely be applied instead. This is because from ROS wrapper version 2.2.22 onwards, three factors have to be provided in a custom stream configuration for each stream type used - width, height and FPS. Although width and height have been custom-configured at 640x480 in the launch file, a custom FPS value for depth - depth_fps - has not been defined and remains as '-1'.

[image: image] https://user-images.githubusercontent.com/41145062/138830740-44a9b978-5af4-4fde-bbaa-f6d6ae1e331a.png

Please try the custom roslaunch instruction below to see whether depth is published correctly in rostopic echo when using this launch.

roslaunch realsense2_camera rs_camera.launch depth_width:=640 depth_height:=480 depth_fps:=30

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IntelRealSense/realsense-ros/issues/2136#issuecomment-951650129, or unsubscribe https://github.com/notifications/unsubscribe-auth/APAQ2Q2RJII6DNYWVNVIKSTUIZTALANCNFSM5GWIYQ2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MartyG-RealSense commented 2 years ago

Great news, @Abirami-Segar - thanks very much for the update!

MartyG-RealSense commented 2 years ago

Case closed due to solution achieved and no further comments received.