12-03-2019, 07:31 PM
Hi there,
This piece of Python code should help you create your target:
Remember that you also need the orientation of the target.
Simply using [X,Y,Z] is a point, not a target.
Hope it helps.
Jeremy
This piece of Python code should help you create your target:
Code:
# Name of the reference frame to be use
帧= RDK。项目(“框架名称”)
# Create new target at [0,0,0] (XYZ) from reference frame
Target = RDK.AddTarget('Target name ' + str(target_number), frame)
# Offset the new target position
Target.setPose(Offset(eye(), pos_X, pos_Y, pos_Z, rot_X, rot_Y, rot_Z))
Remember that you also need the orientation of the target.
Simply using [X,Y,Z] is a point, not a target.
Hope it helps.
Jeremy