Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to subscribe disparity image?

I have started working with stereo camera. I have the disparity image on the /stereo/disparity topic. Now I want to subcribe that stereo_msgs/DisparityImage form the /stereo/disparity topic. For subscribing this is

image_transport::ImageTransport it(nh);

image_transport::Subscriber sub = it.subscribe("/stereo/disparity", 1, imageCallback);

enough? Or do i have to use some other transport for disparity image. .