depthai-ros icon indicating copy to clipboard operation
depthai-ros copied to clipboard

Enable the left and right images when running the stereo_inertial_node

Open LanWu076 opened this issue 1 year ago • 4 comments

When I run the roslaunch depthai_examples stereo_inertial_node.launch, I can have depth images and point cloud. Is there a way to enable the left and right cameras streams as well?

LanWu076 avatar Apr 13 '23 06:04 LanWu076

Hi, to enable left and right streams in stereo_inertial_node you would have to edit the source code, you can publish LR streams with depth_aligned argument, though that disables rgb pointcloud. Having both stereo, rgb, left and right streams is available in depthai_ros_driver, when respective parameters are set.

Serafadam avatar Apr 20 '23 14:04 Serafadam

@Serafadam how? Is it 'stereo_inertial_node.py' in the launch folder, right? I just modified 'depth_aligned' to False, that makes stream left and right and disables rgb pointcloud as you said, but with rgb disabled. True is defult and that makes only rgb streams, not left and right streams.

HanDaSeul avatar Apr 21 '23 02:04 HanDaSeul

Hi I meant this launch file and these parameters

Serafadam avatar Apr 21 '23 14:04 Serafadam

Hi @Serafadam,

Thank you for the reply. In depthai_ros_driver, I set up the parameters to have them (left, right, depth, and point cloud) successfully but the point cloud is not as good as when running the depthai_examples, as mentioned in (#285).

Is there a way to have good point cloud when enabling the left and right images in depthai_ros_driver?

Thanks

LanWu076 avatar Apr 24 '23 01:04 LanWu076