ArtusAPI 1.3.18__tar.gz → 3.0.1__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 (87) hide show
  1. artusapi-3.0.1/LICENSE +78 -0
  2. artusapi-3.0.1/PKG-INFO +106 -0
  3. artusapi-3.0.1/README.md +67 -0
  4. artusapi-3.0.1/artusapi/__init__.py +4 -0
  5. artusapi-3.0.1/artusapi/artusapi.py +1484 -0
  6. artusapi-3.0.1/artusapi/commands/__init__.py +9 -0
  7. artusapi-3.0.1/artusapi/commands/command_handler.py +497 -0
  8. artusapi-3.0.1/artusapi/common/__init__.py +26 -0
  9. artusapi-3.0.1/artusapi/common/modbus_map.py +217 -0
  10. artusapi-3.0.1/artusapi/common/protocol_codes.py +265 -0
  11. artusapi-3.0.1/artusapi/common/rate_limiter.py +153 -0
  12. artusapi-3.0.1/artusapi/common/slave_id_map.py +86 -0
  13. artusapi-3.0.1/artusapi/communication/ModbusClient/__init__.py +3 -0
  14. artusapi-3.0.1/artusapi/communication/ModbusClient/modbus_client.py +326 -0
  15. artusapi-3.0.1/artusapi/communication/ModbusRTU/__init__.py +3 -0
  16. artusapi-3.0.1/artusapi/communication/ModbusRTU/modbus_rtu.py +168 -0
  17. artusapi-3.0.1/artusapi/communication/ModbusTCP/__init__.py +5 -0
  18. artusapi-3.0.1/artusapi/communication/ModbusTCP/modbus_tcp.py +94 -0
  19. artusapi-3.0.1/artusapi/communication/__init__.py +5 -0
  20. artusapi-3.0.1/artusapi/communication/communication_handler.py +325 -0
  21. artusapi-3.0.1/artusapi/configuration.py +560 -0
  22. artusapi-3.0.1/artusapi/debug/__init__.py +19 -0
  23. artusapi-3.0.1/artusapi/debug/log_setup.py +203 -0
  24. artusapi-3.0.1/artusapi/debug/timing_recorder.py +588 -0
  25. artusapi-3.0.1/artusapi/firmware_update/__init__.py +10 -0
  26. artusapi-3.0.1/artusapi/firmware_update/actuator_updater.py +192 -0
  27. artusapi-3.0.1/artusapi/firmware_update/mainboard_updater.py +105 -0
  28. artusapi-3.0.1/artusapi/robot/__init__.py +3 -0
  29. artusapi-3.0.1/artusapi/robot/artus_base/__init__.py +3 -0
  30. artusapi-3.0.1/artusapi/robot/artus_base/artus_base.py +433 -0
  31. artusapi-3.0.1/artusapi/robot/artus_dex/__init__.py +7 -0
  32. artusapi-3.0.1/artusapi/robot/artus_dex/artus_dex.py +159 -0
  33. artusapi-3.0.1/artusapi/robot/artus_dex/artus_dex_left.py +23 -0
  34. artusapi-3.0.1/artusapi/robot/artus_dex/artus_dex_right.py +23 -0
  35. artusapi-3.0.1/artusapi/robot/artus_lite/__init__.py +17 -0
  36. artusapi-3.0.1/artusapi/robot/artus_lite/artus_lite.py +160 -0
  37. artusapi-3.0.1/artusapi/robot/artus_lite/artus_lite_left.py +23 -0
  38. artusapi-3.0.1/artusapi/robot/artus_lite/artus_lite_plus.py +42 -0
  39. artusapi-3.0.1/artusapi/robot/artus_lite/artus_lite_plus_left.py +24 -0
  40. artusapi-3.0.1/artusapi/robot/artus_lite/artus_lite_plus_right.py +24 -0
  41. artusapi-3.0.1/artusapi/robot/artus_lite/artus_lite_right.py +23 -0
  42. artusapi-3.0.1/artusapi/robot/artus_scorpion/__init__.py +3 -0
  43. artusapi-3.0.1/artusapi/robot/artus_scorpion/artus_scorpion.py +154 -0
  44. artusapi-3.0.1/artusapi/robot/artus_talos/__init__.py +7 -0
  45. artusapi-3.0.1/artusapi/robot/artus_talos/artus_talos.py +90 -0
  46. artusapi-3.0.1/artusapi/robot/artus_talos/artus_talos_left.py +23 -0
  47. artusapi-3.0.1/artusapi/robot/artus_talos/artus_talos_right.py +23 -0
  48. artusapi-3.0.1/artusapi/robot/robot.py +140 -0
  49. artusapi-3.0.1/artusapi/robot_config_default.yaml +44 -0
  50. artusapi-3.0.1/artusapi/sensors/__init__.py +3 -0
  51. artusapi-3.0.1/artusapi/sensors/force_sensor.py +28 -0
  52. artusapi-3.0.1/pyproject.toml +61 -0
  53. artusapi-3.0.1/pyproject.toml.orig +57 -0
  54. ArtusAPI-1.3.18/ArtusAPI/__init__.py +0 -1
  55. ArtusAPI-1.3.18/ArtusAPI/artus_api.py +0 -790
  56. ArtusAPI-1.3.18/ArtusAPI/commands/__init__.py +0 -1
  57. ArtusAPI-1.3.18/ArtusAPI/commands/commands.py +0 -229
  58. ArtusAPI-1.3.18/ArtusAPI/communication/UART/__init__.py +0 -1
  59. ArtusAPI-1.3.18/ArtusAPI/communication/UART/uart.py +0 -127
  60. ArtusAPI-1.3.18/ArtusAPI/communication/WiFi/__init__.py +0 -1
  61. ArtusAPI-1.3.18/ArtusAPI/communication/WiFi/wifi_server.py +0 -227
  62. ArtusAPI-1.3.18/ArtusAPI/communication/__init__.py +0 -1
  63. ArtusAPI-1.3.18/ArtusAPI/communication/communication.py +0 -256
  64. ArtusAPI-1.3.18/ArtusAPI/firmware_update/__init__.py +0 -1
  65. ArtusAPI-1.3.18/ArtusAPI/firmware_update/firmware_updater.py +0 -143
  66. ArtusAPI-1.3.18/ArtusAPI/firmware_update/run_full_firmware_update.py +0 -117
  67. ArtusAPI-1.3.18/ArtusAPI/robot/__init__.py +0 -1
  68. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/__init__.py +0 -5
  69. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/artus_lite.py +0 -218
  70. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/artus_lite_left.py +0 -21
  71. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/artus_lite_plus.py +0 -88
  72. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/artus_lite_plus_left.py +0 -10
  73. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/artus_lite_plus_right.py +0 -10
  74. ArtusAPI-1.3.18/ArtusAPI/robot/artus_lite/artus_lite_right.py +0 -21
  75. ArtusAPI-1.3.18/ArtusAPI/robot/robot.py +0 -88
  76. ArtusAPI-1.3.18/ArtusAPI/sensors/ForceSensor.py +0 -12
  77. ArtusAPI-1.3.18/ArtusAPI/sensors/__init__.py +0 -1
  78. ArtusAPI-1.3.18/ArtusAPI.egg-info/PKG-INFO +0 -213
  79. ArtusAPI-1.3.18/ArtusAPI.egg-info/SOURCES.txt +0 -32
  80. ArtusAPI-1.3.18/ArtusAPI.egg-info/dependency_links.txt +0 -1
  81. ArtusAPI-1.3.18/ArtusAPI.egg-info/entry_points.txt +0 -4
  82. ArtusAPI-1.3.18/ArtusAPI.egg-info/requires.txt +0 -6
  83. ArtusAPI-1.3.18/ArtusAPI.egg-info/top_level.txt +0 -1
  84. ArtusAPI-1.3.18/PKG-INFO +0 -213
  85. ArtusAPI-1.3.18/README.md +0 -197
  86. ArtusAPI-1.3.18/setup.cfg +0 -4
  87. ArtusAPI-1.3.18/setup.py +0 -32
artusapi-3.0.1/LICENSE ADDED
@@ -0,0 +1,78 @@
1
+ Copyright (c) 2023–2026 Sarcomere Dynamics Inc.
2
+ All rights reserved.
3
+
4
+ This license applies to all software components, source code, and associated files (collectively, the “Software”)
5
+ provided by Sarcomere Dynamics Inc. for use with its high-dexterity robotic
6
+ hardware, including ARTUS Lite, ARTUS+, and future products such as ARTUS Dex and Hyperion.
7
+
8
+ 1. License Grant.
9
+
10
+ Sarcomere Dynamics Inc. (“Sarcomere”) grants you a non-exclusive, worldwide, royalty-free,
11
+ source-available license to use, modify, and distribute the Software under the following terms:
12
+
13
+ 1.1. You may use, reproduce, modify, and distribute the Software for commercial or non-commercial purposes,
14
+ provided that this License and the copyright notice are retained in all
15
+ copies or substantial portions of the Software.
16
+
17
+ 1.2. You may create derivative works based on the Software, provided that:
18
+ * Modifications are clearly documented, and
19
+ * Attribution to Sarcomere Dynamics is maintained.
20
+
21
+ 1.3. Any software or system that incorporates or depends on the Software must:
22
+ * Include a copy of this License,
23
+ * Acknowledge the use of Sarcomere’s Software in documentation, splash screens, or user-facing notices.
24
+
25
+ 2. Restrictions.
26
+
27
+ 2.1. The Software is licensed solely for use with authorized Sarcomere Dynamics hardware,
28
+ including but not limited to ARTUS Lite, ARTUS+, ARTUS Dex, and Hyperion.
29
+ Use of the Software with third-party or competing hardware is prohibited, unless explicitly
30
+ authorized in writing by Sarcomere Dynamics.
31
+
32
+ 2.2. You may not:
33
+ * Use the Software for unlawful activities or in violation of applicable laws;
34
+ * Remove, obscure, or alter any copyright, trademark, or license notices;
35
+ * Claim ownership of the Software or misrepresent its origin.
36
+
37
+ 3. Disclaimer of Warranty
38
+
39
+ THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND,
40
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT.
42
+ SARCOMERE DYNAMICS DISCLAIMS ALL LIABILITY FOR ANY LOSS OR DAMAGE ARISING FROM THE USE OF THE SOFTWARE.
43
+
44
+ 4. Limitation of Liability
45
+
46
+ IN NO EVENT SHALL SARCOMERE DYNAMICS BE LIABLE FOR ANY INDIRECT,
47
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
48
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
49
+ SERVICES, LOSS OF DATA, OR BUSINESS INTERRUPTION), HOWEVER CAUSED
50
+ AND UNDER ANY THEORY OF LIABILITY, ARISING FROM THE USE OR INABILITY
51
+ TO USE THE SOFTWARE.
52
+
53
+ 5. Indemnification
54
+
55
+ You agree to indemnify and hold harmless Sarcomere Dynamics and its affiliates, officers,
56
+ employees, and agents from any claims, damages, or liabilities arising out of your use or misuse
57
+ of the Software or your violation of this License.
58
+
59
+ 6. Governing Law
60
+
61
+ This License shall be governed by and construed in accordance with the laws of the
62
+ Province of British Columbia, Canada, without regard to its conflict of law principles.
63
+
64
+ 7. Termination
65
+
66
+ Sarcomere Dynamics reserves the right to terminate this License if you violate its terms.
67
+ Upon termination, you must immediately cease all use and distribution of the Software and destroy all copies.
68
+
69
+ 8. License Versioning
70
+
71
+ This License applies to the Software as distributed at the time of your use.
72
+ Sarcomere Dynamics may release updated License terms for future versions of the Software.
73
+
74
+ 9. Contact
75
+
76
+ For inquiries, partnership requests, or licensing clarifications, contact:
77
+ email: info@sarcomeredynamics.com
78
+ website: www.sarcomeredynamics.com
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.4
2
+ Name: artusapi
3
+ Version: 3.0.1
4
+ Summary: ArtusAPI for controlling ARTUS robots by Sarcomere Dynamics Inc.
5
+ Keywords: robotics,artus,sarcomere dynamics,control
6
+ Author: Sarcomere Dynamics Inc.
7
+ Author-email: Sarcomere Dynamics Inc. <support@sarcomeredynamics.com>
8
+ License-File: LICENSE
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Manufacturing
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Topic :: Software Development :: Libraries
18
+ Classifier: Topic :: Software Development :: Embedded Systems :: Controller Area Network (CAN)
19
+ Classifier: Topic :: Software Development :: Embedded Systems
20
+ Classifier: Topic :: Software Development
21
+ Classifier: Typing :: Typed
22
+ Classifier: Development Status :: 4 - Beta
23
+ Classifier: Environment :: Web Environment
24
+ Classifier: Programming Language :: Python :: 3 :: Only
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Topic :: Scientific/Engineering
29
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
30
+ Requires-Dist: esptool>=5.4.0
31
+ Requires-Dist: pymodbus>=3.5.0
32
+ Requires-Dist: pyserial>=3.5
33
+ Requires-Dist: pyyaml>=6.0.3
34
+ Requires-Dist: tqdm>=4.70.1
35
+ Requires-Python: >=3.12
36
+ Project-URL: Homepage, https://sarcomeredynamics.com/home
37
+ Project-URL: Repository, https://github.com/Sarcomere-Dynamics/Sarcomere_Dynamics_Resources
38
+ Description-Content-Type: text/markdown
39
+
40
+ # artusapi
41
+
42
+ ![Banner](docs/assets/images/common/logo.svg)
43
+
44
+ **artusapi** is a Python API for controlling the Sarcomere Dynamics ARTUS family of robotic hands over ModbusRTU/ModbusTCP.
45
+
46
+ See the Sarcomere Dynamics Inc. [Software License](LICENSE) for terms and conditions of use.
47
+
48
+ For further technical support, contact <info@sarcomeredynamics.com>.
49
+
50
+ ## Table of Contents
51
+
52
+ - [Supported Hardware](#supported-hardware)
53
+ - [Installation](#installation)
54
+ - [Usage Guide](#usage-guide)
55
+ - [Revision Control](#revision-control)
56
+
57
+ ## Supported Hardware
58
+
59
+ > [!IMPORTANT]
60
+ > Each product in the ARTUS lineup by Sarcomere Dynamics has its own unique wiring, joint maps, and calibration requirements.
61
+ >
62
+ > Please review the documentation corresponding to your ARTUS hand before powering on the device.
63
+
64
+ | Product | Hardware README |
65
+ | ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
66
+ | ARTUS Lite/Lite+ | [artus_lite.md](https://github.com/Sarcomere-Dynamics/.github/blob/main/docs/hardware/artus_lite/artus_lite.md) |
67
+ | ARTUS Talos | [artus_talos.md](https://github.com/Sarcomere-Dynamics/.github/blob/main/docs/hardware/artus_talos/artus_talos.md) |
68
+ | ARTUS Scorpion | [artus_scorpion.md](https://github.com/Sarcomere-Dynamics/.github/blob/main/docs/hardware/artus_scorpion/artus_scorpion.md) |
69
+ | ARTUS Dex | **WORK IN PROGRESS** |
70
+
71
+ ## Installation
72
+
73
+ Sarcomere Dynamics Inc. recommends installing **artusapi** via [**uv**](https://docs.astral.sh/uv/)
74
+
75
+ ```bash
76
+ uv add artusapi
77
+ ```
78
+
79
+ However, since stable releases of [**artusapi** are hosted on PyPi](https://pypi.org/project/artusapi/),
80
+ **pip** or any alternative package manager may be used instead.
81
+
82
+ ```bash
83
+ pip install artusapi
84
+ ```
85
+
86
+ For the latest development version of **artusapi**, this repository may be cloned directly from GitHub.
87
+
88
+ ## Usage Guide
89
+
90
+ [Click here to read a guide on how to interact with **artusapi**.](/docs/guide/guide.md)
91
+
92
+ ## Revision Control
93
+
94
+ | Date | Revision | Changelog | Pip Release |
95
+ | :-----------: | :------: | :------------------------------------------------: | :---------: |
96
+ | Nov. 30, 2026 | v3.0.1 | [2026-11.md](/changelog/2026-11.md) | v3.0.1 |
97
+ | Oct. 09, 2026 | v3.0 | [2026-10.md](/changelog/2026-10.md) | N/A |
98
+ | Jul. 20, 2026 | v2.1 | [2026-07.md](/changelog/2026-07.md) | v2.0.0 |
99
+ | Dec. 31, 2025 | v2.0 | [2025-12.md](/changelog/2025-12.md) | - |
100
+ | Jun. 02, 2025 | v1.3.10 | [2025-06.md](/changelog/2025-06.md) | v1.3.10 |
101
+ | Apr. 22, 2025 | v1.1.1 | readmes/documentation updated | - |
102
+ | Nov. 14, 2024 | v1.1 | firmware v1.1 release | v1.1 |
103
+ | Oct. 23, 2024 | v1.0.2 | awake parameter added, wake up function in connect | v1.0.1 |
104
+ | Oct. 09, 2024 | v1.0 | ARTUS Lite Release | v1.0 |
105
+ | Apr. 23, 2024 | v1.1b | Beta release - ARTUS Lite Mk 6 | - |
106
+ | Nov. 14, 2023 | v1.0b | Initial release - ARTUS Lite Mk 5 | - |
@@ -0,0 +1,67 @@
1
+ # artusapi
2
+
3
+ ![Banner](docs/assets/images/common/logo.svg)
4
+
5
+ **artusapi** is a Python API for controlling the Sarcomere Dynamics ARTUS family of robotic hands over ModbusRTU/ModbusTCP.
6
+
7
+ See the Sarcomere Dynamics Inc. [Software License](LICENSE) for terms and conditions of use.
8
+
9
+ For further technical support, contact <info@sarcomeredynamics.com>.
10
+
11
+ ## Table of Contents
12
+
13
+ - [Supported Hardware](#supported-hardware)
14
+ - [Installation](#installation)
15
+ - [Usage Guide](#usage-guide)
16
+ - [Revision Control](#revision-control)
17
+
18
+ ## Supported Hardware
19
+
20
+ > [!IMPORTANT]
21
+ > Each product in the ARTUS lineup by Sarcomere Dynamics has its own unique wiring, joint maps, and calibration requirements.
22
+ >
23
+ > Please review the documentation corresponding to your ARTUS hand before powering on the device.
24
+
25
+ | Product | Hardware README |
26
+ | ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
27
+ | ARTUS Lite/Lite+ | [artus_lite.md](https://github.com/Sarcomere-Dynamics/.github/blob/main/docs/hardware/artus_lite/artus_lite.md) |
28
+ | ARTUS Talos | [artus_talos.md](https://github.com/Sarcomere-Dynamics/.github/blob/main/docs/hardware/artus_talos/artus_talos.md) |
29
+ | ARTUS Scorpion | [artus_scorpion.md](https://github.com/Sarcomere-Dynamics/.github/blob/main/docs/hardware/artus_scorpion/artus_scorpion.md) |
30
+ | ARTUS Dex | **WORK IN PROGRESS** |
31
+
32
+ ## Installation
33
+
34
+ Sarcomere Dynamics Inc. recommends installing **artusapi** via [**uv**](https://docs.astral.sh/uv/)
35
+
36
+ ```bash
37
+ uv add artusapi
38
+ ```
39
+
40
+ However, since stable releases of [**artusapi** are hosted on PyPi](https://pypi.org/project/artusapi/),
41
+ **pip** or any alternative package manager may be used instead.
42
+
43
+ ```bash
44
+ pip install artusapi
45
+ ```
46
+
47
+ For the latest development version of **artusapi**, this repository may be cloned directly from GitHub.
48
+
49
+ ## Usage Guide
50
+
51
+ [Click here to read a guide on how to interact with **artusapi**.](/docs/guide/guide.md)
52
+
53
+ ## Revision Control
54
+
55
+ | Date | Revision | Changelog | Pip Release |
56
+ | :-----------: | :------: | :------------------------------------------------: | :---------: |
57
+ | Nov. 30, 2026 | v3.0.1 | [2026-11.md](/changelog/2026-11.md) | v3.0.1 |
58
+ | Oct. 09, 2026 | v3.0 | [2026-10.md](/changelog/2026-10.md) | N/A |
59
+ | Jul. 20, 2026 | v2.1 | [2026-07.md](/changelog/2026-07.md) | v2.0.0 |
60
+ | Dec. 31, 2025 | v2.0 | [2025-12.md](/changelog/2025-12.md) | - |
61
+ | Jun. 02, 2025 | v1.3.10 | [2025-06.md](/changelog/2025-06.md) | v1.3.10 |
62
+ | Apr. 22, 2025 | v1.1.1 | readmes/documentation updated | - |
63
+ | Nov. 14, 2024 | v1.1 | firmware v1.1 release | v1.1 |
64
+ | Oct. 23, 2024 | v1.0.2 | awake parameter added, wake up function in connect | v1.0.1 |
65
+ | Oct. 09, 2024 | v1.0 | ARTUS Lite Release | v1.0 |
66
+ | Apr. 23, 2024 | v1.1b | Beta release - ARTUS Lite Mk 6 | - |
67
+ | Nov. 14, 2023 | v1.0b | Initial release - ARTUS Lite Mk 5 | - |
@@ -0,0 +1,4 @@
1
+ from .artusapi import ArtusAPI
2
+ from .configuration import ArtusConfig, copy_default_config
3
+
4
+ __all__ = ["ArtusAPI", "ArtusConfig", "copy_default_config"]