ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I have not only used the accepted solution, but change the susbscriber type:
subscriber_=it.subscribeCamera("/sensors/camera/top/image_raw",1, &ImageReader::callbackSubscriber, this);
publisher_ = it.advertiseCamera("camera/image", 1,false);
And my callback is now:
void ImageReader::callbackSubscriber(const sensor_msgs::Image::ConstPtr& msg,
const sensor_msgs::CameraInfo::ConstPtr& camera_info)