urkit 0.3.2__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {urkit-0.3.2 → urkit-0.3.4}/PKG-INFO +3 -3
  2. {urkit-0.3.2 → urkit-0.3.4}/README.md +2 -2
  3. {urkit-0.3.2 → urkit-0.3.4}/pyproject.toml +1 -1
  4. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/__init__.py +1 -1
  5. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/cli/teach.py +8 -2
  6. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/robot.py +2 -0
  7. {urkit-0.3.2 → urkit-0.3.4}/src/urkit.egg-info/PKG-INFO +3 -3
  8. {urkit-0.3.2 → urkit-0.3.4}/setup.cfg +0 -0
  9. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/__main__.py +0 -0
  10. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/cli/__init__.py +0 -0
  11. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/cli/colors.py +0 -0
  12. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/cli/connection_monitor.py +0 -0
  13. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/cli/points.py +0 -0
  14. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/config.py +0 -0
  15. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/connection.py +0 -0
  16. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/exceptions.py +0 -0
  17. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/geometry.py +0 -0
  18. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/gripper/__init__.py +0 -0
  19. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/gripper/base.py +0 -0
  20. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/gripper/digital.py +0 -0
  21. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/gripper/presets.py +0 -0
  22. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/gripper/robotiq.py +0 -0
  23. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/gripper/robotiq_preamble.py +0 -0
  24. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/io.py +0 -0
  25. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/motion.py +0 -0
  26. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/points.py +0 -0
  27. {urkit-0.3.2 → urkit-0.3.4}/src/urkit/telemetry.py +0 -0
  28. {urkit-0.3.2 → urkit-0.3.4}/src/urkit.egg-info/SOURCES.txt +0 -0
  29. {urkit-0.3.2 → urkit-0.3.4}/src/urkit.egg-info/dependency_links.txt +0 -0
  30. {urkit-0.3.2 → urkit-0.3.4}/src/urkit.egg-info/entry_points.txt +0 -0
  31. {urkit-0.3.2 → urkit-0.3.4}/src/urkit.egg-info/requires.txt +0 -0
  32. {urkit-0.3.2 → urkit-0.3.4}/src/urkit.egg-info/top_level.txt +0 -0
  33. {urkit-0.3.2 → urkit-0.3.4}/tests/test_exceptions.py +0 -0
  34. {urkit-0.3.2 → urkit-0.3.4}/tests/test_geometry.py +0 -0
  35. {urkit-0.3.2 → urkit-0.3.4}/tests/test_gripper.py +0 -0
  36. {urkit-0.3.2 → urkit-0.3.4}/tests/test_gripper_factory.py +0 -0
  37. {urkit-0.3.2 → urkit-0.3.4}/tests/test_gripper_presets.py +0 -0
  38. {urkit-0.3.2 → urkit-0.3.4}/tests/test_points.py +0 -0
  39. {urkit-0.3.2 → urkit-0.3.4}/tests/test_robot_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: urkit
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Universal Robots e-Series control toolkit built on ur_rtde
5
5
  Author: URKit Contributors
6
6
  License: MIT
@@ -672,8 +672,8 @@ See [CHANGELOG.md](CHANGELOG.md) for the full version history.
672
672
 
673
673
  ### Recent Changes
674
674
 
675
- - **v3.2** — Gripper speed/force keys (6/7), force/speed display
676
- - **v3.1** — Async motion, Space cancel, progress bar, joint display
675
+ - **v0.3.2** — Gripper speed/force keys (6/7), force/speed display
676
+ - **v0.3.1** — Async motion, Space cancel, progress bar, joint display
677
677
  - **v0.3.0** — Safe/expert mode, speed_stop on exit, safety features
678
678
  - **v0.2.1** — `get_pose()` method
679
679
  - **v0.2.0** — README restructure
@@ -646,8 +646,8 @@ See [CHANGELOG.md](CHANGELOG.md) for the full version history.
646
646
 
647
647
  ### Recent Changes
648
648
 
649
- - **v3.2** — Gripper speed/force keys (6/7), force/speed display
650
- - **v3.1** — Async motion, Space cancel, progress bar, joint display
649
+ - **v0.3.2** — Gripper speed/force keys (6/7), force/speed display
650
+ - **v0.3.1** — Async motion, Space cancel, progress bar, joint display
651
651
  - **v0.3.0** — Safe/expert mode, speed_stop on exit, safety features
652
652
  - **v0.2.1** — `get_pose()` method
653
653
  - **v0.2.0** — README restructure
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "urkit"
7
- version = "0.3.2"
7
+ version = "0.3.4"
8
8
  description = "Universal Robots e-Series control toolkit built on ur_rtde"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -24,7 +24,7 @@ Quick start::
24
24
 
25
25
  from __future__ import annotations
26
26
 
27
- __version__ = "0.3.2"
27
+ __version__ = "0.3.4"
28
28
 
29
29
  from urkit.config import load_config, resolve_config
30
30
  from urkit.exceptions import (
@@ -68,6 +68,10 @@ _DEFAULT_ANGULAR_STEP = math.radians(0.5) # 0.5 degrees in radians
68
68
  _DEFAULT_ANGULAR_STEP_MIN = math.radians(0.1) # 0.1 degrees
69
69
  _DEFAULT_ANGULAR_STEP_MAX = math.radians(5) # 5 degrees
70
70
 
71
+ # Safe mode step caps (tighter for teaching)
72
+ _SAFE_LINEAR_STEP_MAX = 0.01 # 10mm
73
+ _SAFE_ANGULAR_STEP_MAX = math.radians(1.0) # 1 degree
74
+
71
75
  # Safe motion limits (UR protective stop thresholds)
72
76
  _MAX_VEL = 3.0 # m/s
73
77
  _MAX_ACC = 6.0 # m/s²
@@ -1111,7 +1115,8 @@ def _teach_pendant(
1111
1115
  try:
1112
1116
  mm = float(val) # type: ignore
1113
1117
  state["linear_step"] = max(mm / 1000, _DEFAULT_LINEAR_STEP_MIN)
1114
- state["linear_step"] = min(state["linear_step"], _DEFAULT_LINEAR_STEP_MAX)
1118
+ cap = _SAFE_LINEAR_STEP_MAX if not expert_mode else _DEFAULT_LINEAR_STEP_MAX
1119
+ state["linear_step"] = min(state["linear_step"], cap)
1115
1120
  except (ValueError, TypeError):
1116
1121
  messages.append("Invalid step value")
1117
1122
  command_handled = True
@@ -1121,7 +1126,8 @@ def _teach_pendant(
1121
1126
  try:
1122
1127
  deg = float(val) # type: ignore
1123
1128
  state["angular_step"] = max(math.radians(deg), _DEFAULT_ANGULAR_STEP_MIN)
1124
- state["angular_step"] = min(state["angular_step"], _DEFAULT_ANGULAR_STEP_MAX)
1129
+ cap = _SAFE_ANGULAR_STEP_MAX if not expert_mode else _DEFAULT_ANGULAR_STEP_MAX
1130
+ state["angular_step"] = min(state["angular_step"], cap)
1125
1131
  except (ValueError, TypeError):
1126
1132
  messages.append("Invalid step value")
1127
1133
  command_handled = True
@@ -894,6 +894,8 @@ class URRobot:
894
894
 
895
895
  try:
896
896
  if linear:
897
+ if not self._rtde_c.getInverseKinematicsHasSolution(pose):
898
+ raise MotionError(f"Pose unreachable: {pose}")
897
899
  self._motion.movel(pose, vel=vel, acc=acc, asynchronous=asynchronous)
898
900
  else:
899
901
  joints = self.inverse_kinematics(pose)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: urkit
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Universal Robots e-Series control toolkit built on ur_rtde
5
5
  Author: URKit Contributors
6
6
  License: MIT
@@ -672,8 +672,8 @@ See [CHANGELOG.md](CHANGELOG.md) for the full version history.
672
672
 
673
673
  ### Recent Changes
674
674
 
675
- - **v3.2** — Gripper speed/force keys (6/7), force/speed display
676
- - **v3.1** — Async motion, Space cancel, progress bar, joint display
675
+ - **v0.3.2** — Gripper speed/force keys (6/7), force/speed display
676
+ - **v0.3.1** — Async motion, Space cancel, progress bar, joint display
677
677
  - **v0.3.0** — Safe/expert mode, speed_stop on exit, safety features
678
678
  - **v0.2.1** — `get_pose()` method
679
679
  - **v0.2.0** — README restructure
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes