08-08-2022, 11:58 AM
I want to know if linear movement between two targets is possible. For this I have created a function where I use the command moveL_Test and SolveFK. Unfortunately in all the L movements that the robot performs the result is -2 but the robot can perform L movements.
Please could you check my function and tell me what I should correct.
Please could you check my function and tell me what I should correct.
PHP Code:
def move_L_test(target_pallet_i):
TCP_ITEM=RDK.Item('TCP A',ITEM_TYPE_TOOL)
pose_1=CalculatePoseFrame2Object(frame_robot,TCP_ITEM)
ti_1=RDK.AddTarget("position_1",frame_robot)
ti_1.setPose(pose_1)
startpoint=ti_1.Joints()
ti_2=RDK.AddTarget("position_2",frame_pallet)
ti_2.setPose(target_pallet_i)
pose_2=CalculatePoseFrame2Object(frame_robot,ti_2)
joints=robot.SolveFK(pose_2,robot.PoseTool())
issues=robot.MoveL_Test(startpoint,joints)
RDK.ShowMessage(str(issues))
ti_1.删除()
ti_2.删除()