hello, i got following codes from a demo.i understand all this instructions,but don’t understand how the codes useful.
who can explain? thanks
FUNC wobjdata createWobjCad(
robtarget ptRob1,
robtarget ptRob2,
robtarget ptRob3,
robtarget ptVehic1,
robtarget ptVehic2,
robtarget ptVehic3)
VAR pose frameRob:=[[0,0,0],[1,0,0,0]];
VAR pose frameVehic:=[[0,0,0],[1,0,0,0]];
VAR wobjdata wobjTmp:= [FALSE, TRUE, “”, [[0, 0, 0],[1, 0, 0, 0]],
[[0, 0, 0],[1, 0, 0, 0]]];
!calculation vehicle frame position in world frame of the robot
frameRob:=DefFrame(ptRob1,ptRob2,ptRob3);
frameVehic:=DefFrame(ptVehic1,ptVehic2,ptVehic3);
wobjTmp.uframe:=PoseMult(frameRob,PoseInv(frameVehic));
RETURN wobjTmp;
ENDFUNC