Skip to content

Commit 08c9ab7

Browse files
committed
Script code update
1 parent 0046867 commit 08c9ab7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/external_control.urscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,18 +573,18 @@ thread trajectoryThread():
573573

574574
# MoveJ point
575575
if raw_point[INDEX_POINT_TYPE] == MOTION_TYPE_MOVEJ:
576-
textmsg("Moving to joint position: ", q)
577576
movej(q, a = acceleration, v = velocity, t = tmptime, r = blend_radius)
578577

579578
# reset old acceleration
580579
spline_qdd = [0, 0, 0, 0, 0, 0]
581580
spline_qd = [0, 0, 0, 0, 0, 0]
582581
elif raw_point[INDEX_POINT_TYPE] == MOTION_TYPE_MOVEJ_POSE:
583582
target_pose = p[q[0], q[1], q[2], q[3], q[4], q[5]]
584-
textmsg("Moving to pose: ", target_pose)
585-
target_q = get_inverse_kin(target_pose, get_target_joint_positions())
583+
target_q = get_target_joint_positions()
586584
if has_qnear:
587585
target_q = get_inverse_kin(target_pose, second_block)
586+
else
587+
target_q = get_inverse_kin(target_pose, get_target_joint_positions())
588588
end
589589
movej(target_q, a = acceleration, v = velocity, t = tmptime, r = blend_radius)
590590

0 commit comments

Comments
 (0)