Skip to content

Commit fadbd9a

Browse files
urfeexurrsk
andauthored
Apply suggestions from code review
Co-authored-by: Rune Søe-Knudsen <41109954+urrsk@users.noreply.github.com>
1 parent 450b3f6 commit fadbd9a

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
@@ -582,11 +582,11 @@ thread trajectoryThread():
582582
target_pose = p[q[0], q[1], q[2], q[3], q[4], q[5]]
583583
target_q = get_target_joint_positions()
584584
if has_qnear:
585-
target_q = get_inverse_kin(target_pose, second_block)
585+
local target_q = get_inverse_kin(target_pose, second_block)
586+
movej(target_q, a = acceleration, v = velocity, t = tmptime, r = blend_radius)
586587
else:
587-
target_q = get_inverse_kin(target_pose, get_target_joint_positions())
588+
movej(target_pose, a = acceleration, v = velocity, t = tmptime, r = blend_radius)
588589
end
589-
movej(target_q, a = acceleration, v = velocity, t = tmptime, r = blend_radius)
590590

591591

592592
# reset old acceleration

0 commit comments

Comments
 (0)