urkit 0.3.17__tar.gz → 0.3.18__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.
- {urkit-0.3.17 → urkit-0.3.18}/PKG-INFO +1 -1
- {urkit-0.3.17 → urkit-0.3.18}/pyproject.toml +1 -1
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/__init__.py +1 -1
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/cli/teach.py +11 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit.egg-info/PKG-INFO +1 -1
- {urkit-0.3.17 → urkit-0.3.18}/README.md +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/setup.cfg +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/__main__.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/cli/__init__.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/cli/colors.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/cli/connection_monitor.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/cli/points.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/config.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/connection.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/exceptions.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/geometry.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/gripper/__init__.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/gripper/base.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/gripper/digital.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/gripper/presets.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/gripper/robotiq.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/gripper/robotiq_preamble.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/io.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/motion.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/points.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/robot.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit/telemetry.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit.egg-info/SOURCES.txt +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit.egg-info/dependency_links.txt +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit.egg-info/entry_points.txt +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit.egg-info/requires.txt +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/src/urkit.egg-info/top_level.txt +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_exceptions.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_geometry.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_gripper.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_gripper_factory.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_gripper_presets.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_points.py +0 -0
- {urkit-0.3.17 → urkit-0.3.18}/tests/test_robot_integration.py +0 -0
|
@@ -11,6 +11,7 @@ Usage:
|
|
|
11
11
|
|
|
12
12
|
from __future__ import annotations
|
|
13
13
|
|
|
14
|
+
from dataclasses import replace
|
|
14
15
|
import ipaddress
|
|
15
16
|
import logging
|
|
16
17
|
import math
|
|
@@ -1395,10 +1396,20 @@ def teach_command(args) -> None:
|
|
|
1395
1396
|
gripper_kwargs["close_on_high"] = cfg["close_on_high"] # type: ignore
|
|
1396
1397
|
|
|
1397
1398
|
# Resolve gripper string to config object
|
|
1399
|
+
# Apply physical overrides (tcp_offset, mass, center_of_gravity) from
|
|
1400
|
+
# config.yaml gripper_config section — same as URRobot.from_config()
|
|
1401
|
+
physical_overrides = ("tcp_offset", "mass", "center_of_gravity")
|
|
1402
|
+
physical_kwargs: dict = {}
|
|
1403
|
+
for key in physical_overrides:
|
|
1404
|
+
if key in cfg: # type: ignore
|
|
1405
|
+
physical_kwargs[key] = cfg[key] # type: ignore
|
|
1406
|
+
|
|
1398
1407
|
gripper_config = None
|
|
1399
1408
|
if gripper_name:
|
|
1400
1409
|
preset = PRESETS.get(gripper_name.upper()) # type: ignore
|
|
1401
1410
|
if preset is not None:
|
|
1411
|
+
if physical_kwargs:
|
|
1412
|
+
preset = replace(preset, **physical_kwargs)
|
|
1402
1413
|
gripper_config = preset
|
|
1403
1414
|
elif gripper_name == "digital":
|
|
1404
1415
|
gripper_config = DigitalGripperConfig( # type: ignore
|
|
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
|
|
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
|