You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not a duplicate. Before opening a new issue, please search existing issues.
This issue is not a question, feature request, or anything other than a bug report directly related to this project.
Description
The distortion coefficients within the zed2-ros2-wrapper camera_info messages (as well as the disto CameraParameters returned by the ZED API for calibration_parameters_raw https://www.stereolabs.com/docs/api/structsl_1_1CameraParameters.html#a5e66eff1633b3ba90dbbf12121163179 ) only contains the first five coefficients k1 k2 p1 p2 k3 even if the conf File contains k4 k5 k6 (or s1 s2 s3 s4).
I confirmed that the additional rational/thin prism coefficients are indeed applied to correctly undistort the images, however only the first five of the 8/12 parameters are returned by the API
Steps to Reproduce
Have a camera connected /svo with a .conf file where the [LEFT_DISTO]/[RIGHT_DISTO] contains values for k4,k5,k6
Launch ROS2 node zed2-ros2-wrapper; general/self_calib (==camera_disable_self_calib) set to false
OK, I noted the modification to be applied by the ZED Wrapper.
I will add it in the next few days if I find the right moment.
Regarding Python output, I reported the issue to the Python team.
Preliminary Checks
Description
The distortion coefficients within the zed2-ros2-wrapper camera_info messages (as well as the disto CameraParameters returned by the ZED API for calibration_parameters_raw
https://www.stereolabs.com/docs/api/structsl_1_1CameraParameters.html#a5e66eff1633b3ba90dbbf12121163179 ) only contains the first five coefficients k1 k2 p1 p2 k3 even if the conf File contains k4 k5 k6 (or s1 s2 s3 s4).
I confirmed that the additional rational/thin prism coefficients are indeed applied to correctly undistort the images, however only the first five of the 8/12 parameters are returned by the API
Steps to Reproduce
Expected Result
D has 8 coefficients
distortion_model is "rational_polynomial"
Actual Result
D has 5 coefficients (the first 5 of the expected 8)
distortion_model is "plumb_bob"
ZED Camera model
ZED2i
Environment
Anything else?
Same bug when checking via python ZED API (e.g. pyzed camera.get_camera_information().calibration_parameters_raw.left_cam.disto )
The ROS1/ROS2 wrappers have hard-coded plumb_bob/resize(5) behaviour:
https://github.com/stereolabs/zed-ros2-wrapper/blob/master/zed_components/src/zed_camera/src/zed_camera_component.cpp#L1941
Changing k4/k5/k6 in the conf file does change the rectified images -> Coeffs are used
The text was updated successfully, but these errors were encountered: