diff --git a/ar_track_alvar/src/Camera.cpp b/ar_track_alvar/src/Camera.cpp index e96f2f4..bdc7441 100644 --- a/ar_track_alvar/src/Camera.cpp +++ b/ar_track_alvar/src/Camera.cpp @@ -258,14 +258,10 @@ void Camera::SetCameraInfo(const sensor_msgs::CameraInfo &camInfo) } void Camera::camInfoCallback (const sensor_msgs::CameraInfoConstPtr & cam_info) - { - if (!getCamInfo_) - { - SetCameraInfo(*cam_info); - getCamInfo_ = true; - sub_.shutdown(); - } - } +{ + SetCameraInfo(*cam_info); + getCamInfo_ = true; +} bool Camera::SetCalib(const char *calibfile, int _x_res, int _y_res, FILE_FORMAT format) { x_res = _x_res;