Closed andrewbest-tri closed 2 years ago
In the code, the frame ID for the image is set by
img_msg_ptr->header.frame_id = cam_info_msg_ptr->header.frame_id;
however the frame_id for camera info was omitted in reflectParameters
This adds the frame_id which fixes the missing data in camera info and the image frame itself
It seems like this should be happening in setCamInfo. Do you know why setCamInfo
isn't setting it correctly?
I'm not super familiar with this part of ros2 but SetCamInfo is a callback, I'm not sure there's any reason to believe it's ever called. https://github.com/anqixu/ueye_cam/blob/be4a4b77d9a433ef221587849018135ee3e5a86f/src/ros/node.cpp#L292