Skip to content

Commit 4bb3f3c

Browse files
committed
bump version to 0.3.24
1 parent a8ba6fb commit 4bb3f3c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "urkit"
7-
version = "0.3.23"
7+
version = "0.3.24"
88
description = "Universal Robots e-Series control toolkit built on ur_rtde"
99
readme = "README.md"
1010
license = {text = "MIT"}

‎src/urkit/motion.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)