Thank you for the great contribution, I was trying to test this on a Velodyne Puck LITE (16 Point) with a Spinnaker FLIR Camera (Blackfly S). The output matrix that was obtained after running the suggested calibration package is as follows:
--------------------------------------------------------------------
After 1000 iterations
--------------------------------------------------------------------
Average translation is:
0.00709106
0.30344
0.106444
Average rotation is:
0.99984 0.0134891 0.0117732
-0.0128457 0.998506 -0.0531141
-0.012472 0.0529544 0.998519
Average transformation is:
0.99984 0.0134891 0.0117732 0.00709106
-0.0128457 0.998506 -0.0531141 0.30344
-0.012472 0.0529544 0.998519 0.106444
0 0 0 1
Final rotation is:
0.0125693 -0.999819 -0.0142852
-0.0531243 0.0135985 -0.998495
0.998509 0.0133093 -0.0529438
Final ypr is:
1.80313
-1.62541
-0.246282
Average RMSE is: 0.0250422
RMSE on average transformation is: 0.0615788
camera_matrix: [2.30402682e+03, 0.00000000e+00, 1.02375433e+03,
0.00000000e+00, 2.30541892e+03, 7.42403621e+02,
0.00000000e+00, 0.00000000e+00, 1.00000000e+00,]
# Final
rlc: [ 0.0125693, -0.999819, -0.0142852,
-0.0531243, 0.0135985, -0.998495,
0.998509, 0.0133093, -0.0529438]
# Average
# rlc: [0.99984 , 0.0134891, 0.0117732,
# -0.0128457, 0.998506, -0.0531141,
# -0.012472, 0.0529544 , 0.998519]
tlc: [ 0.00709106, 0.30344, 0.10644]
When using the final rotation matrix the output has only a couple of points (which are rotated) in the top left corner and it appears not to be the correct tranformation
When using the average rlc values, the resulting pointcloud has no points visible.
Is there some additional rotation that needs to be done in the rotation matrix provided by the code? Is there something wrong with my extrinsic? Any help would be appreciated