Gaze interface: retrieving 3D fixation point using monocular approach #243
-
Please, I need some clarification about the issue object. Now I would like to retrieve the 3D point of the object. Vector 3Dpoint;
Vector px(2);
px[0] = 160;
px[1] = 120;
Vector plane(4);
plane[0]=0;
plane[1]=0;
plane[2]=1;
plane[3]= 0.1; // I guess this is the z of ball in robot reference frame
//using right cam
igaze->get3DPointOnPlane(1, px, plane, 3DPoint);
I would expect 3DPoint is about [-1.5, 0, 0.1], but I obtain something like [-3, 0, -0.1]. What Am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @valeriosperati, You can check here in your code it should be: the equation will become: |
Beta Was this translation helpful? Give feedback.
-
Ops! I completely missed the minus 1! Thanks a lot :) it works |
Beta Was this translation helpful? Give feedback.
Hi @valeriosperati,
You can check here
in the first code box.
in your code it should be:
plane[3]= -0.1;
since you are solving the plane equation:
ax+by+cz+d=0
the equation will become:
z-0.1=0 <=> z=0.1