error: invalid use of non-static member function ‘void Camcallbackc::camcallbackm(const ImageConstPtr&, const CameraInfoConstPtr&)’
image_transport::CameraSubscriber sub = it.subscribeCamera("/camera/rgb/camera_info",100, Camcallbackc::camcallbackm, Camcallbackcp);
出错的是这个参数 Camcallbackc::camcallbackm
改为&Camcallbackc::camcallbackm,编译通过。