fix(ros): fixed error of no frame_id with image information

This commit is contained in:
Osenberg 2019-07-19 18:28:39 +08:00
parent 19ad46f2d2
commit fc9507aa3e

View File

@ -797,6 +797,7 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
pthread_mutex_unlock(&mutex_data_);
auto &&info = getCameraInfo(stream);
info->header.stamp = msg->header.stamp;
info->header.frame_id = frame_ids_[stream];
camera_publishers_[stream].publish(msg, info);
}