luxonis / depthai-ros

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

How can i get the left and right depth by launch examples? #388

Closed jackslife2022 closed 8 months ago

jackslife2022 commented 10 months ago

I want to get the depth be published, which launch example can publish the right and left depth? thanks

danilo-pejovic commented 10 months ago

What do you mean by right and left depth? Depth image is calculated from 2 cameras (right and left one) - so we would only have 1 depth image.

If you want to just publish streams from left and right camera you can do so by (for example) running camera.launch.py file from depthai_ros_driver package and changing parameters that you can see here https://github.com/luxonis/depthai-ros/blob/humble/depthai_ros_driver/config/camera.yaml to suit your needs. If you want to publish regular streams from left and right cameras you would need to change

i_publish_topic: false to i_publish_topic: true under left and right camera field.

Serafadam commented 8 months ago

Closing due to inactivity, please reopen if you have further questions/remarks.