fixed camera info width && height

This commit is contained in:
Joe Dong
2023-10-13 20:30:43 +08:00
parent 4a340dfc9f
commit ab77864452
+2
View File
@@ -896,6 +896,8 @@ void OBCameraNode::onNewFrameCallback(const std::shared_ptr<ob::Frame> &frame,
auto camera_info = convertToCameraInfo(intrinsic, distortion, width);
camera_info.header.stamp = timestamp;
camera_info.header.frame_id = frame_id;
camera_info.width = width;
camera_info.height = height;
CHECK(camera_info_publishers_.count(stream_index) > 0);
camera_info_publishers_[stream_index]->publish(camera_info);
auto &image = images_[stream_index];