I have data points in two different frames - one data is from the camera, I am detecting aruco markers, the second is from the kinematic chain of my robot. I want to find a transformation (translation + rotation) between those two frames. The cost function is as follow:
sum_over_all_points norm((R(alfa)R(beta)R(gamma)*P1+T-P2))^2
where alfa, beta, gamma are Euler angels
P1 - point in the one frame
P2 - point in the camera frame
T - translation between two frames
R(alfa)R(beta)R(gamma) should be a rotation from one frame to the other
My doubts are mainly concerned with:
1. I don't know where I should place boundaries (because the camera has some constraints, because of its fixed placement) so I thought that it could increase the pace of the minimalization.
2. I have also some doubts about grad of my cost function, because Rotation matrix (which is a solution of my problem) is parametrized by three variables, so how I should calculate the grad properly?