ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
image_transport has a special type of subscriber specifically for stereo cameras that does what you want, but I think it requires that the timestamps in the image headers be exactly synchronized which is hard to do with webcams.
Your best choice is probably an ApproximateTime synchronizer, which lets you subscribe to two topics with a callback that receives a message from each topic.