0
$\begingroup$

I have two monocular USB cameras and I want to use ROS to make it a stereo camera. I am having a hard time finding a ROS package that consumes 2 monocular camera image streams and publishes a depth map or point cloud. These are the ROS topics available for the 2 ROS cameras:

/my_stereo/left/camera_info
/my_stereo/left/image_raw
/my_stereo/right/camera_info
/my_stereo/right/image_raw
/my_stereo_both/parameter_descriptions
/my_stereo_both/parameter_updates
/my_stereo_l/parameter_descriptions
/my_stereo_l/parameter_updates
/my_stereo_r/parameter_descriptions

How can I do this? Any help is truly appreciated!

$\endgroup$

1 Answer 1

2
$\begingroup$

You can write a simple node which subscribes to the 2 RGB feeds, uses blob matching (look up Stereo matching in OpenCV or Stereo Binary SGBM) to create the stereo image, and publishes it.

Alternately, I think OpenCV contains the functionality for image_to_pointcloud conversion.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.