File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " urkit"
7- version = " 0.3.23 "
7+ version = " 0.3.24 "
88description = " Universal Robots e-Series control toolkit built on ur_rtde"
99readme = " README.md"
1010license = {text = " MIT" }
Original file line number Diff line number Diff line change @@ -408,10 +408,11 @@ def move_until_contact(
408408 t_start = self ._rtde_c .initPeriod ()
409409 self ._rtde_c .speedL (speed_vector , acceleration , 0.002 )
410410
411- # Check force/torque for contact
411+ # Check force/torque for contact — only on moving axes
412412 current = list (self ._rtde_r .getActualTCPForce ())
413+ moving_axes = [i for i in range (6 ) if abs (speed_vector [i ]) > 0 ]
413414 if any (
414- abs (current [i ] - baseline [i ]) > threshold for i in range ( 6 )
415+ abs (current [i ] - baseline [i ]) > threshold for i in moving_axes
415416 ):
416417 contact_detected = True
417418 break
You can’t perform that action at this time.
0 commit comments