I have the following simplified gantry system (cartesian robot) that can move in the x axis direction:
My goal is to position the red pointer on top of the target (i.e., I want the real world x-coordinates of the pointer and the target to be the same). I have a vision system above the gantry and I am using two aruco markers. This way I can detect the position of the target and the carriage in the image plane. Hence, I know their x-coordinates in pixels.
Knowing the positions of the target and carriage arucos, how can I compute the position in the image plane (x-coordinate in pixels) where the carriage aruco should be after moving the gantry and positioning the red pointer just on top of the target aruco?
Any advice on how to make the system more accurate/robust?