Hi guys. I have a node which publishes images to /image_raw topic and camera calibration data to /camera_info topic. It is setting lens distortion coefficients using the "d" vector of CameraInfo structure. Now, the camera sensor driver says lens distortion type is polynomial. Now, for distortion type polynomial, there are 6 radial distortion coefficients and 2 tangential distortion coefficients. How can I pass all eight through the d vector? I set the values correctly from d[0] to d[7] but when I use ros2 topic echo /camera_info it shows just the first five elements d[0] ... d[5]. It truncates the rest of the vector. The subsequent nodes in the pipeline need all the distortion coefficients but are unable to receive them due to this truncation.
Can someone help me with this?
Originally posted by shankk on ROS Answers with karma: 18 on 2021-10-11
Post score: 0