ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Ok, I think I might have found an answer so:
The problem lies in the use of the ros::Subscriber.
To get both the image and the camera_info simultaneously (and synchronized), use image_transport CameraSubscriber instead.
image_transport::CameraSubscriber sub = it.subscribeCamera("camera/rgb/image", 1, &imageCb);
The callback function can be left as-is.