luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

[Help] rgbd_pcl depth data in 400p #329

Closed mheyrman closed 1 year ago

mheyrman commented 1 year ago

I am trying to use this driver to implement an Oak-D Pro on a robot, specifically using the rgbd_pcl package, however, I am having speed issues and to alleviate these I would like to use the 400p resolution for all ROS messages, and specifically need that aspect ratio for properly running on my model. However, I cannot figure out how to change the resolutions from 720p, which is also the wrong aspect ratio. I have tried adjusting all of the camera.yaml values in depth_ros_driver to match my desired resolution, but this has no effect. Are there more specific instructions somewhere to correctly change the resolution to 400p?

I only need the raw stereo image data, so if there are any other ways that I could potentially speed up the process, I'd love to hear it.

Thanks.

Serafadam commented 1 year ago

Hi!

mheyrman commented 1 year ago

I see, thank you! I was under the incorrect impression that the various parameter files contributed differently, thank you for informing me. I was able to get it working as desired by editing rgbd_pcl.yaml. Though it seems that for the extended disparity mode exceeds the maximum supported disparity of the Median Filter so it does not work.

Thank for you the help.