fix(*): frame id in ros node.

This commit is contained in:
TinyO 2019-09-12 11:01:23 +08:00
parent ecdc817a11
commit 4fa8bec7d4

View File

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