ArtusAPI 1.3.9__tar.gz → 1.3.11__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 (38) hide show
  1. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/artus_api.py +10 -9
  2. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/commands/commands.py +3 -0
  3. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/communication/UART/uart.py +3 -3
  4. ArtusAPI-1.3.11/ArtusAPI/communication/__init__.py +1 -0
  5. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/communication/communication.py +1 -0
  6. ArtusAPI-1.3.11/ArtusAPI.egg-info/PKG-INFO +206 -0
  7. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI.egg-info/entry_points.txt +0 -1
  8. ArtusAPI-1.3.11/ArtusAPI.egg-info/requires.txt +5 -0
  9. ArtusAPI-1.3.11/PKG-INFO +206 -0
  10. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/README.md +16 -1
  11. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/setup.py +13 -13
  12. ArtusAPI-1.3.9/ArtusAPI/communication/__init__.py +0 -1
  13. ArtusAPI-1.3.9/ArtusAPI.egg-info/PKG-INFO +0 -12
  14. ArtusAPI-1.3.9/ArtusAPI.egg-info/requires.txt +0 -6
  15. ArtusAPI-1.3.9/PKG-INFO +0 -12
  16. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/__init__.py +0 -0
  17. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/commands/__init__.py +0 -0
  18. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/communication/UART/__init__.py +0 -0
  19. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/communication/WiFi/__init__.py +0 -0
  20. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/communication/WiFi/wifi_server.py +0 -0
  21. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/firmware_update/__init__.py +0 -0
  22. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/firmware_update/firmware_updater.py +0 -0
  23. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/firmware_update/run_full_firmware_update.py +0 -0
  24. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/__init__.py +0 -0
  25. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/__init__.py +0 -0
  26. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/artus_lite.py +0 -0
  27. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/artus_lite_left.py +0 -0
  28. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/artus_lite_plus.py +0 -0
  29. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/artus_lite_plus_left.py +0 -0
  30. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/artus_lite_plus_right.py +0 -0
  31. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/artus_lite/artus_lite_right.py +0 -0
  32. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/robot/robot.py +0 -0
  33. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/sensors/ForceSensor.py +0 -0
  34. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI/sensors/__init__.py +0 -0
  35. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI.egg-info/SOURCES.txt +0 -0
  36. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI.egg-info/dependency_links.txt +0 -0
  37. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/ArtusAPI.egg-info/top_level.txt +0 -0
  38. {ArtusAPI-1.3.9 → ArtusAPI-1.3.11}/setup.cfg +0 -0
@@ -21,7 +21,7 @@ print(desired_path)
21
21
 
22
22
 
23
23
 
24
- from .communication import Communication
24
+ from .communication import Communication,STARTUP_ACK,NORMAL_ACK
25
25
  from .commands import Commands
26
26
  from .robot import Robot
27
27
  from .firmware_update import FirmwareUpdater
@@ -110,7 +110,7 @@ class ArtusAPI:
110
110
  self._communication_handler.send_data(robot_wake_up_command)
111
111
 
112
112
  # wait for data back
113
- if self._communication_handler.wait_for_ack():
113
+ if self._communication_handler.wait_for_ack(value=STARTUP_ACK):
114
114
  self.logger.info(f'Finished calibration')
115
115
  else:
116
116
  self.logger.warning(f'Error in calibration')
@@ -433,8 +433,8 @@ class ArtusAPI:
433
433
  :return: None
434
434
  """
435
435
  com = None
436
- while com not in ['UART','CAN','RS485']:
437
- com = input('Enter Communication Protocol you would like to change to (default: UART, CAN, RS485): ')
436
+ while com not in ['UART','CAN','RS485','WIFI']:
437
+ com = input('Enter Communication Protocol you would like to change to (default: UART, CAN, RS485, WIFI): ')
438
438
  if com == 'CAN':
439
439
  feed = None
440
440
  while feed not in ['P','C','ALL']:
@@ -585,7 +585,7 @@ def main_flash():
585
585
  "peripheral_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/peripheral_64.txt",
586
586
  "peripheral_plus_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/peripheral_plus_64.txt",
587
587
 
588
- "master_64_right": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_64.txt",
588
+ "master_64_right": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_right_64.txt",
589
589
  "master_plus_64_right": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_plus_64.txt",
590
590
 
591
591
  "master_64_left": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_left_64.txt",
@@ -595,7 +595,7 @@ def main_flash():
595
595
  "master_partitions_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_partitions_64.txt",
596
596
  "master_plus_partitions_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_plus_partitions_64.txt",
597
597
 
598
- "master_bootapp0_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_bootapp0_64.txt",
598
+ "master_bootapp0_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_plus_bootapp_64.txt",
599
599
  "master_bootloader_64": "https://gist.githubusercontent.com/SDRyanLee/ad8bbe17164c74e6417d1e2d4d0843d2/raw/master_bootloader_64.txt"
600
600
  }
601
601
 
@@ -634,7 +634,7 @@ def main_flash():
634
634
  print('Flashing peripheral')
635
635
 
636
636
  elif type_flash == 'master':
637
-
637
+ print(f'flashing master with parameters: {args.robot} {args.side}')
638
638
  if args.robot == 'artus_lite':
639
639
  if args.side == 'right':
640
640
  file_location = bin_paths['master_64_right']
@@ -648,8 +648,8 @@ def main_flash():
648
648
  elif args.side == 'left':
649
649
  file_location = bin_paths['master_plus_64_left']
650
650
  partitions_path = bin_paths['master_plus_partitions_64']
651
- bootapp_path = bin_paths['master_bootapp0_64']
652
651
 
652
+ bootapp_path = bin_paths['master_bootapp0_64']
653
653
  bootloader_path = bin_paths['master_bootloader_64']
654
654
  print('Flashing master')
655
655
  # write files
@@ -728,7 +728,8 @@ def main_flash():
728
728
  '0x10000', 'flash.bin'
729
729
  ]
730
730
 
731
- # Run esptool flash command
731
+ # Run esptool flash command with verbose output
732
+ # cmd_args.append('--verbose')
732
733
  esptool.main(cmd_args)
733
734
 
734
735
  # Clean up temporary bootloader files
@@ -159,6 +159,7 @@ class Commands:
159
159
  def update_param_command(self,communication='UART', feedback=None):
160
160
  """
161
161
  Communication Options:
162
+ 'WIFI' - WIFI
162
163
  'UART' - USBC
163
164
  'RS485' - RS485
164
165
  'CAN' - CAN
@@ -178,6 +179,8 @@ class Commands:
178
179
  command_list[17] = 2
179
180
  elif communication == 'RS485':
180
181
  command_list[17] = 3
182
+ elif communication == 'WIFI':
183
+ command_list[17] = 0
181
184
 
182
185
  if feedback:
183
186
  command_list[2] = 1
@@ -78,9 +78,9 @@ class UART:
78
78
  try:
79
79
  x = time.perf_counter()
80
80
  # # print(f'time start: {x}')
81
- while self.esp32.in_waiting < size:
82
- if time.perf_counter() - x > 0.001:
83
- break
81
+ # while self.esp32.in_waiting < size:
82
+ # if time.perf_counter() - x > 0.001:
83
+ # break
84
84
  # print(f'elapsed time: {time.perf_counter() - x}')
85
85
  # time.sleep(0.03)
86
86
  # check data
@@ -0,0 +1 @@
1
+ from .communication import Communication,STARTUP_ACK,NORMAL_ACK
@@ -199,6 +199,7 @@ class Communication:
199
199
  self.logger.info(f'ack received in {time.perf_counter() - start_time} seconds')
200
200
  return 1
201
201
  elif tmp == value:
202
+ self.logger.info(f'Artus Version {rc_csum[0]}.{rc_csum[1]}')
202
203
  self.logger.info(f'ack received in {time.perf_counter() - start_time} seconds')
203
204
  return 1
204
205
  time.sleep(0.01)
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.1
2
+ Name: ArtusAPI
3
+ Version: 1.3.11
4
+ Summary: API to control Artus Family of Robots by Sarcomere Dynamics Inc
5
+ Home-page: https://sarcomeredynamics.com/home
6
+ Author: Sarcomere Dynamics Inc.
7
+ License: UNKNOWN
8
+ Project-URL: Source, https://github.com/Sarcomere-Dynamics/Sarcomere_Dynamics_Resources
9
+ Keywords: robotics,artus,sarcomere dynamics,control
10
+ Platform: UNKNOWN
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+
14
+ <img src='data/images/SarcomereLogoHorizontal.svg'>
15
+
16
+ # Python ARTUS Robotic Hand API
17
+
18
+ This repository contains a Python API for controlling the ARTUS robotic hands by Sarcomere Dynamics Inc.
19
+
20
+ Please contact the team if there are any issues that arise through the use of the API. See [Software License](/Software%20License_24March%202025.pdf).
21
+
22
+ ## Introduction
23
+ >[!IMPORTANT]
24
+ __Please read through the entire README and the _User Manual_ before using the ARTUS hand__
25
+
26
+ The user manual contains in-depth operational and troubleshooting guidelines for the device.
27
+
28
+ This repository contains the following:
29
+ * [ARTUS API](/ArtusAPI/)
30
+ * [ROS2 Node](/ros2/)
31
+ * [Examples](/examples/)
32
+
33
+ Below is a list of the ARTUS hand-specific READMEs that are compatible with the API. This includes _electrical wiring specifics_, _joint maps_ and more:
34
+ * [ARTUS Lite Information](/ArtusAPI/robot/artus_lite/README.md)
35
+
36
+ ### VERY IMPORTANT
37
+ * [Requirements](#requirements)
38
+ * [Normal Startup Procedure](#normal-startup-procedure)
39
+ * [Normal Shutdown Procedure](#normal-shutdown-procedure)
40
+
41
+ ## Table of Contents
42
+ * [Getting Started](#1-getting-started)
43
+ * [1.1 Requirements](#11-requirements)
44
+ * [1.2 Python Requirements](#12-python-requirements)
45
+ * [1.2.1 Use-as-Released](#121-use-as-released)
46
+ * [1.2.2 Use Cloned Repository](#122-use-cloned-repository)
47
+ * [1.3 Hardware Requirements](#13-hardware-requirements)
48
+ * [Basic Usage](#2-basic-usage)
49
+ * [2.1 Normal Startup Procedure](#21-normal-startup-procedure)
50
+ * [2.2 Normal Shutdown Procedure](#22-normal-shutdown-procedure)
51
+ * [2.3 Running _general_example.py_](#23-running-general_examplepy)
52
+ * [2.3.1 Video Introduction](#231-video-introduction)
53
+ * [Control Examples](#artus-lite-control-examples-setup)
54
+ * [GUIv2](#1-gui-setup)
55
+ * [ROS2](#2-ros2-node-control-setup)
56
+ * [Manus Glove Teleoperation](#3-manus-glove-setup)
57
+
58
+ See the [Appendix](#appendix) for additional links and information.
59
+
60
+ ## Wiring Diagram
61
+ See below the wiring diagram with the circuit connection names and cable colours. You can use either the 8P nano M8 or the 4P nano M8. We recommend a 200W rated 24V power supply, please review the power requirements here: [ARTUS Lite Information](/ArtusAPI/robot/artus_lite/ARTUS_LITE.md)
62
+
63
+ ## 1. Getting Started
64
+ __Sections__
65
+ * [1.1 Requirements](#11-requirements)
66
+ * [1.2 Python Requirements](#12-python-requirements)
67
+ * [1.2.1 Use-as-Released](#121-use-as-released)
68
+ * [1.2.2 Use Cloned Repository](#122-use-cloned-repository)
69
+ * [1.3 Hardware Requirements](#13-hardware-requirements)
70
+
71
+ The first step to working with the Artus Lite is to connect to the hand, and achieve joint control and joint feedback. It is highly recommended that this should be done for the first time via the [example program provided](#23-running-general_examplepy). In preparation for this example, please follow the subsequent sections step by step, outlining all requirements for working with both the initial example program, as well as the API as a whole.
72
+
73
+ ### 1.1 Requirements
74
+ Below is a list of Requirements for the Artus to be compatible
75
+ 1. Python v3.10+ - Requires Python version >= 3.10 installed on the host system. Please visit the [Python website](https://www.python.org/downloads/) to install Python. Within the setup instructions, there will be a prompt that allows you to "disable PATH length limit". Please continue with this option selected.
76
+ 2. FTDI USB Driver (Windows Only) - Necessary for the Artus Lite to be recognized as a USB device once it is connected over USBC, go to [FTDI Driver Download](https://ftdichip.com/drivers/vcp-drivers/) to install the virtual COM port driver.
77
+
78
+ ### 1.2 Python Requirements
79
+ There are two ways to install the Python API. The first is through Python's package manager, where the API can be imported as a library like any other. The second is through this cloned Github repository, using and importing the local files.
80
+
81
+ >[!Note]
82
+ >If you have multiple Python installations (different versions) on your PC, ensure that your *pip* commands apply to the installation/version you intend to use to run the Artus API, and is the same one used later in any IDE used to create your own programs. You can ensure this by adding the path to the to-be-used python executable as a prefix to this command. An example of this is below.
83
+ >```
84
+ >C:\Users\zanem\AppData\Local\Programs\Python\Python311\python.exe -m pip install psutil
85
+ >```
86
+ >Take a look at [these steps on creating and using a virtual environment](https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/) to ensure that you are using the correct python at all times
87
+
88
+ #### 1.2.1 Use-as-Released
89
+ The ArtusAPI is available via pip [here](https://pypi.org/project/ArtusAPI/) using the following command:
90
+ ```python
91
+ pip install ArtusAPI
92
+ ```
93
+ Once this is complete, the software dependecies are all met!
94
+
95
+ #### 1.2.2 Use Cloned Repository
96
+ If you plan to eventually make changes to the source code, you will need to clone the GitHub *SARCOMERE_DYNAMICS_RESOURCES* repository. Once cloned, you can utilize the *requirements.txt* included in the package to install the dependencies. With a terminal open, execute the following command:
97
+ ```
98
+ pip install -r path\to\requirements.txt
99
+ ```
100
+ Alternatively, if your terminal is open in the cloned repo's folder, you can run the following simpler version of the above command.
101
+ ```
102
+ pip install -r requirements.txt
103
+ ```
104
+
105
+ ### 1.3 Hardware Requirements
106
+ 1. Power and Data Harness connection (options below)
107
+ 1. __4P Nano M8 (Power) + USB-C (COM)__. These are the harnesses that should be connected when running the *general_example.py* script below. Out-of-the-box, the hand is set up to use USBC as the communication method.
108
+ 2. 8P Nano M8 (Power + COM). This harness setup is reserved for more advanced use, once you are familiar with the hand. This harness allows for CAN or RS485 communication and power all-in-one.
109
+
110
+ <div align=center>
111
+ <img src='data/images/wiring_diagram.png'>
112
+ </div>
113
+
114
+ ## 2. Basic Usage
115
+ This section covers very basic usage of the Artus Lite using the Artus API.
116
+
117
+ __Sections__
118
+ * [2.1 Normal Startup Procedure](#21-normal-startup-procedure)
119
+ * [2.2 Normal Shutdown Procedure](#22-normal-shutdown-procedure)
120
+ * [2.3 Running _general_example.py_](#23-running-general_examplepy)
121
+ * [2.3.1 Video Introduction](#231-video-introduction)
122
+
123
+ ### 2.1 Normal Startup Procedure
124
+ There is a standard series of commands that need to be followed before sending target commands or receiving feedback data is possible.
125
+
126
+ Before any software, ensure that the power connector is secured and connected to the Artus hand and if using a wired connection (Serial or CANbus), ensure the connection/cable is good.
127
+
128
+ First, to create a communication connection between the API and the Artus hand, `ArtusAPI.connect()` must be run to confirm communication is open on the selected communication type.
129
+
130
+ Second, the `ArtusAPI.wake_up()` function must be run to allow the hand to load it's necessary configurations.
131
+
132
+ Once these two steps are complete, optionally, you can run `ArtusAPI.calibrate()` to calibrate the finger joints. Otherwise, the system is now ready to start sending and receiving data!
133
+
134
+ >[!NOTE]
135
+ >If running version v1.0.1+, `wake_up` is called inside the `connect()` function_
136
+
137
+ ### 2.2 Normal Shutdown Procedure
138
+ When getting ready to power off the device please do the following:
139
+ * Send a zero position command to all the joints so that the hand is opened
140
+ * Once the hand is in an open position, send the `artus.sleep()` command to save parameters to the SD Card.
141
+ * Once the LED turns yellow, then the device can be powered off.
142
+
143
+ >[!NOTE]
144
+ >This is different than the mk8 where the SD Card would save periodically. Now, saving to SD Card is more intentional.
145
+
146
+ ### 2.3 Running _general_example.py_
147
+ See the [General Example README to complete this task](/examples/general_example/README.md)
148
+
149
+ #### 2.3.1 Video Introduction
150
+ [![Getting Started Video](/data/images/thumbnail.png)](https://www.youtube.com/watch?v=30BkuA0EkP4)
151
+
152
+ ## Artus Lite Control Examples Setup
153
+
154
+ ### 1. GUI Setup
155
+ Please check the [Artus GUIV2 README](examples/Control/ArtusLiteControl/GUIControlV2/README.md) for a GUI setup to control the Artus Lite hand.
156
+
157
+ Also, check the video below for a demonstration of the GUI setup.
158
+ >[!NOTE]
159
+ >Video is for GUIv1, but GUIv1 is depracated. Please use GUIv2
160
+
161
+ <div align="center">
162
+ <a href="https://www.youtube.com/watch?v=l_Sl6bAeGuc">
163
+ <img src="./data/images/gui.png" alt="Watch the video" width="200" />
164
+ </a>
165
+ </div>
166
+
167
+ ### 2. ROS2 Node Control Setup
168
+ Please check the [Artus ROS2 Node README](ros2/artuslite_ws/README.md) for a ROS2 node setup to control the Artus Lite hand.
169
+
170
+ Also, check the video below for a demonstration of the ROS2 node setup.
171
+
172
+ <div align="center">
173
+ <a href="https://www.youtube.com/watch?v=GHyG1NuuRv4">
174
+ Watch the video
175
+ </a>
176
+ </div>
177
+
178
+ ### 3. Manus Glove Setup
179
+ Please check the [Manus Glove README](examples/Control/ArtusLiteControl/ManusGloveControl/README.md) for a Manus Glove setup to control the Artus Lite hand.
180
+
181
+ Also, check the video below for a demonstration of the Manus Glove setup.
182
+
183
+ <div align="center">
184
+ <a href="https://www.youtube.com/watch?v=SPXJlxMaDVQ&list=PLNUrV_GAAyA8HNBAvwBlsmIqoWiJJLRwW&index=2">
185
+ Watch the video
186
+ </a>
187
+ </div>
188
+
189
+
190
+
191
+ ## Revision Control
192
+ | Date | Revision | Description | Pip Release |
193
+ | :---: | :------: | :---------: | :----------: |
194
+ | Nov. 14, 2023 | v1.0b | Initial release - Artus Lite Mk 5 | NA |
195
+ | Apr. 23, 2024 | v1.1b | Beta release - Artus Lite Mk 6 | NA |
196
+ | Oct. 9, 2024 | v1.0 | Artus Lite Release | v1.0 |
197
+ | Oct. 23, 2024 | v1.0.2 | awake parameter added, wake up function in connect | v1.0.1 |
198
+ | Nov. 14, 2024 | v1.1 | firmware v1.1 release | v1.1 |
199
+ | Apr. 22, 2025 | v1.1.1 | readmes/documentation updated | - |
200
+ | Jun. 2, 2025 | v1.3.10 | changes publish, see [changelog](/changelog/) | v1.3.10 |
201
+
202
+ ## Appendix
203
+ * [Artus API](ArtusAPI/artus_api.py) - The file containing all functions that interact with the Artus Lite.
204
+ * [API Docs](docs/API%20Functionality.md) - Contains a little more information on application and reasoning behind the API functions.
205
+
206
+
@@ -1,4 +1,3 @@
1
1
  [console_scripts]
2
2
  artusapiflash = ArtusAPI.artus_api:main_flash
3
- artusapimain = ArtusAPI.artus_api:main
4
3
 
@@ -0,0 +1,5 @@
1
+ esptool
2
+ psutil==5.9.8
3
+ pyserial==3.5
4
+ pyyaml
5
+ tqdm
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.1
2
+ Name: ArtusAPI
3
+ Version: 1.3.11
4
+ Summary: API to control Artus Family of Robots by Sarcomere Dynamics Inc
5
+ Home-page: https://sarcomeredynamics.com/home
6
+ Author: Sarcomere Dynamics Inc.
7
+ License: UNKNOWN
8
+ Project-URL: Source, https://github.com/Sarcomere-Dynamics/Sarcomere_Dynamics_Resources
9
+ Keywords: robotics,artus,sarcomere dynamics,control
10
+ Platform: UNKNOWN
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+
14
+ <img src='data/images/SarcomereLogoHorizontal.svg'>
15
+
16
+ # Python ARTUS Robotic Hand API
17
+
18
+ This repository contains a Python API for controlling the ARTUS robotic hands by Sarcomere Dynamics Inc.
19
+
20
+ Please contact the team if there are any issues that arise through the use of the API. See [Software License](/Software%20License_24March%202025.pdf).
21
+
22
+ ## Introduction
23
+ >[!IMPORTANT]
24
+ __Please read through the entire README and the _User Manual_ before using the ARTUS hand__
25
+
26
+ The user manual contains in-depth operational and troubleshooting guidelines for the device.
27
+
28
+ This repository contains the following:
29
+ * [ARTUS API](/ArtusAPI/)
30
+ * [ROS2 Node](/ros2/)
31
+ * [Examples](/examples/)
32
+
33
+ Below is a list of the ARTUS hand-specific READMEs that are compatible with the API. This includes _electrical wiring specifics_, _joint maps_ and more:
34
+ * [ARTUS Lite Information](/ArtusAPI/robot/artus_lite/README.md)
35
+
36
+ ### VERY IMPORTANT
37
+ * [Requirements](#requirements)
38
+ * [Normal Startup Procedure](#normal-startup-procedure)
39
+ * [Normal Shutdown Procedure](#normal-shutdown-procedure)
40
+
41
+ ## Table of Contents
42
+ * [Getting Started](#1-getting-started)
43
+ * [1.1 Requirements](#11-requirements)
44
+ * [1.2 Python Requirements](#12-python-requirements)
45
+ * [1.2.1 Use-as-Released](#121-use-as-released)
46
+ * [1.2.2 Use Cloned Repository](#122-use-cloned-repository)
47
+ * [1.3 Hardware Requirements](#13-hardware-requirements)
48
+ * [Basic Usage](#2-basic-usage)
49
+ * [2.1 Normal Startup Procedure](#21-normal-startup-procedure)
50
+ * [2.2 Normal Shutdown Procedure](#22-normal-shutdown-procedure)
51
+ * [2.3 Running _general_example.py_](#23-running-general_examplepy)
52
+ * [2.3.1 Video Introduction](#231-video-introduction)
53
+ * [Control Examples](#artus-lite-control-examples-setup)
54
+ * [GUIv2](#1-gui-setup)
55
+ * [ROS2](#2-ros2-node-control-setup)
56
+ * [Manus Glove Teleoperation](#3-manus-glove-setup)
57
+
58
+ See the [Appendix](#appendix) for additional links and information.
59
+
60
+ ## Wiring Diagram
61
+ See below the wiring diagram with the circuit connection names and cable colours. You can use either the 8P nano M8 or the 4P nano M8. We recommend a 200W rated 24V power supply, please review the power requirements here: [ARTUS Lite Information](/ArtusAPI/robot/artus_lite/ARTUS_LITE.md)
62
+
63
+ ## 1. Getting Started
64
+ __Sections__
65
+ * [1.1 Requirements](#11-requirements)
66
+ * [1.2 Python Requirements](#12-python-requirements)
67
+ * [1.2.1 Use-as-Released](#121-use-as-released)
68
+ * [1.2.2 Use Cloned Repository](#122-use-cloned-repository)
69
+ * [1.3 Hardware Requirements](#13-hardware-requirements)
70
+
71
+ The first step to working with the Artus Lite is to connect to the hand, and achieve joint control and joint feedback. It is highly recommended that this should be done for the first time via the [example program provided](#23-running-general_examplepy). In preparation for this example, please follow the subsequent sections step by step, outlining all requirements for working with both the initial example program, as well as the API as a whole.
72
+
73
+ ### 1.1 Requirements
74
+ Below is a list of Requirements for the Artus to be compatible
75
+ 1. Python v3.10+ - Requires Python version >= 3.10 installed on the host system. Please visit the [Python website](https://www.python.org/downloads/) to install Python. Within the setup instructions, there will be a prompt that allows you to "disable PATH length limit". Please continue with this option selected.
76
+ 2. FTDI USB Driver (Windows Only) - Necessary for the Artus Lite to be recognized as a USB device once it is connected over USBC, go to [FTDI Driver Download](https://ftdichip.com/drivers/vcp-drivers/) to install the virtual COM port driver.
77
+
78
+ ### 1.2 Python Requirements
79
+ There are two ways to install the Python API. The first is through Python's package manager, where the API can be imported as a library like any other. The second is through this cloned Github repository, using and importing the local files.
80
+
81
+ >[!Note]
82
+ >If you have multiple Python installations (different versions) on your PC, ensure that your *pip* commands apply to the installation/version you intend to use to run the Artus API, and is the same one used later in any IDE used to create your own programs. You can ensure this by adding the path to the to-be-used python executable as a prefix to this command. An example of this is below.
83
+ >```
84
+ >C:\Users\zanem\AppData\Local\Programs\Python\Python311\python.exe -m pip install psutil
85
+ >```
86
+ >Take a look at [these steps on creating and using a virtual environment](https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/) to ensure that you are using the correct python at all times
87
+
88
+ #### 1.2.1 Use-as-Released
89
+ The ArtusAPI is available via pip [here](https://pypi.org/project/ArtusAPI/) using the following command:
90
+ ```python
91
+ pip install ArtusAPI
92
+ ```
93
+ Once this is complete, the software dependecies are all met!
94
+
95
+ #### 1.2.2 Use Cloned Repository
96
+ If you plan to eventually make changes to the source code, you will need to clone the GitHub *SARCOMERE_DYNAMICS_RESOURCES* repository. Once cloned, you can utilize the *requirements.txt* included in the package to install the dependencies. With a terminal open, execute the following command:
97
+ ```
98
+ pip install -r path\to\requirements.txt
99
+ ```
100
+ Alternatively, if your terminal is open in the cloned repo's folder, you can run the following simpler version of the above command.
101
+ ```
102
+ pip install -r requirements.txt
103
+ ```
104
+
105
+ ### 1.3 Hardware Requirements
106
+ 1. Power and Data Harness connection (options below)
107
+ 1. __4P Nano M8 (Power) + USB-C (COM)__. These are the harnesses that should be connected when running the *general_example.py* script below. Out-of-the-box, the hand is set up to use USBC as the communication method.
108
+ 2. 8P Nano M8 (Power + COM). This harness setup is reserved for more advanced use, once you are familiar with the hand. This harness allows for CAN or RS485 communication and power all-in-one.
109
+
110
+ <div align=center>
111
+ <img src='data/images/wiring_diagram.png'>
112
+ </div>
113
+
114
+ ## 2. Basic Usage
115
+ This section covers very basic usage of the Artus Lite using the Artus API.
116
+
117
+ __Sections__
118
+ * [2.1 Normal Startup Procedure](#21-normal-startup-procedure)
119
+ * [2.2 Normal Shutdown Procedure](#22-normal-shutdown-procedure)
120
+ * [2.3 Running _general_example.py_](#23-running-general_examplepy)
121
+ * [2.3.1 Video Introduction](#231-video-introduction)
122
+
123
+ ### 2.1 Normal Startup Procedure
124
+ There is a standard series of commands that need to be followed before sending target commands or receiving feedback data is possible.
125
+
126
+ Before any software, ensure that the power connector is secured and connected to the Artus hand and if using a wired connection (Serial or CANbus), ensure the connection/cable is good.
127
+
128
+ First, to create a communication connection between the API and the Artus hand, `ArtusAPI.connect()` must be run to confirm communication is open on the selected communication type.
129
+
130
+ Second, the `ArtusAPI.wake_up()` function must be run to allow the hand to load it's necessary configurations.
131
+
132
+ Once these two steps are complete, optionally, you can run `ArtusAPI.calibrate()` to calibrate the finger joints. Otherwise, the system is now ready to start sending and receiving data!
133
+
134
+ >[!NOTE]
135
+ >If running version v1.0.1+, `wake_up` is called inside the `connect()` function_
136
+
137
+ ### 2.2 Normal Shutdown Procedure
138
+ When getting ready to power off the device please do the following:
139
+ * Send a zero position command to all the joints so that the hand is opened
140
+ * Once the hand is in an open position, send the `artus.sleep()` command to save parameters to the SD Card.
141
+ * Once the LED turns yellow, then the device can be powered off.
142
+
143
+ >[!NOTE]
144
+ >This is different than the mk8 where the SD Card would save periodically. Now, saving to SD Card is more intentional.
145
+
146
+ ### 2.3 Running _general_example.py_
147
+ See the [General Example README to complete this task](/examples/general_example/README.md)
148
+
149
+ #### 2.3.1 Video Introduction
150
+ [![Getting Started Video](/data/images/thumbnail.png)](https://www.youtube.com/watch?v=30BkuA0EkP4)
151
+
152
+ ## Artus Lite Control Examples Setup
153
+
154
+ ### 1. GUI Setup
155
+ Please check the [Artus GUIV2 README](examples/Control/ArtusLiteControl/GUIControlV2/README.md) for a GUI setup to control the Artus Lite hand.
156
+
157
+ Also, check the video below for a demonstration of the GUI setup.
158
+ >[!NOTE]
159
+ >Video is for GUIv1, but GUIv1 is depracated. Please use GUIv2
160
+
161
+ <div align="center">
162
+ <a href="https://www.youtube.com/watch?v=l_Sl6bAeGuc">
163
+ <img src="./data/images/gui.png" alt="Watch the video" width="200" />
164
+ </a>
165
+ </div>
166
+
167
+ ### 2. ROS2 Node Control Setup
168
+ Please check the [Artus ROS2 Node README](ros2/artuslite_ws/README.md) for a ROS2 node setup to control the Artus Lite hand.
169
+
170
+ Also, check the video below for a demonstration of the ROS2 node setup.
171
+
172
+ <div align="center">
173
+ <a href="https://www.youtube.com/watch?v=GHyG1NuuRv4">
174
+ Watch the video
175
+ </a>
176
+ </div>
177
+
178
+ ### 3. Manus Glove Setup
179
+ Please check the [Manus Glove README](examples/Control/ArtusLiteControl/ManusGloveControl/README.md) for a Manus Glove setup to control the Artus Lite hand.
180
+
181
+ Also, check the video below for a demonstration of the Manus Glove setup.
182
+
183
+ <div align="center">
184
+ <a href="https://www.youtube.com/watch?v=SPXJlxMaDVQ&list=PLNUrV_GAAyA8HNBAvwBlsmIqoWiJJLRwW&index=2">
185
+ Watch the video
186
+ </a>
187
+ </div>
188
+
189
+
190
+
191
+ ## Revision Control
192
+ | Date | Revision | Description | Pip Release |
193
+ | :---: | :------: | :---------: | :----------: |
194
+ | Nov. 14, 2023 | v1.0b | Initial release - Artus Lite Mk 5 | NA |
195
+ | Apr. 23, 2024 | v1.1b | Beta release - Artus Lite Mk 6 | NA |
196
+ | Oct. 9, 2024 | v1.0 | Artus Lite Release | v1.0 |
197
+ | Oct. 23, 2024 | v1.0.2 | awake parameter added, wake up function in connect | v1.0.1 |
198
+ | Nov. 14, 2024 | v1.1 | firmware v1.1 release | v1.1 |
199
+ | Apr. 22, 2025 | v1.1.1 | readmes/documentation updated | - |
200
+ | Jun. 2, 2025 | v1.3.10 | changes publish, see [changelog](/changelog/) | v1.3.10 |
201
+
202
+ ## Appendix
203
+ * [Artus API](ArtusAPI/artus_api.py) - The file containing all functions that interact with the Artus Lite.
204
+ * [API Docs](docs/API%20Functionality.md) - Contains a little more information on application and reasoning behind the API functions.
205
+
206
+
@@ -44,6 +44,9 @@ Below is a list of the ARTUS hand-specific READMEs that are compatible with the
44
44
 
45
45
  See the [Appendix](#appendix) for additional links and information.
46
46
 
47
+ ## Wiring Diagram
48
+ See below the wiring diagram with the circuit connection names and cable colours. You can use either the 8P nano M8 or the 4P nano M8. We recommend a 200W rated 24V power supply, please review the power requirements here: [ARTUS Lite Information](/ArtusAPI/robot/artus_lite/ARTUS_LITE.md)
49
+
47
50
  ## 1. Getting Started
48
51
  __Sections__
49
52
  * [1.1 Requirements](#11-requirements)
@@ -171,6 +174,18 @@ Also, check the video below for a demonstration of the Manus Glove setup.
171
174
  </div>
172
175
 
173
176
 
177
+
178
+ ## Revision Control
179
+ | Date | Revision | Description | Pip Release |
180
+ | :---: | :------: | :---------: | :----------: |
181
+ | Nov. 14, 2023 | v1.0b | Initial release - Artus Lite Mk 5 | NA |
182
+ | Apr. 23, 2024 | v1.1b | Beta release - Artus Lite Mk 6 | NA |
183
+ | Oct. 9, 2024 | v1.0 | Artus Lite Release | v1.0 |
184
+ | Oct. 23, 2024 | v1.0.2 | awake parameter added, wake up function in connect | v1.0.1 |
185
+ | Nov. 14, 2024 | v1.1 | firmware v1.1 release | v1.1 |
186
+ | Apr. 22, 2025 | v1.1.1 | readmes/documentation updated | - |
187
+ | Jun. 2, 2025 | v1.3.10 | changes publish, see [changelog](/changelog/) | v1.3.10 |
188
+
174
189
  ## Appendix
175
190
  * [Artus API](ArtusAPI/artus_api.py) - The file containing all functions that interact with the Artus Lite.
176
- * [API Docs](docs/API%20Functionality.md) - Contains a little more information on application and reasoning behind the API functions.
191
+ * [API Docs](docs/API%20Functionality.md) - Contains a little more information on application and reasoning behind the API functions.
@@ -2,28 +2,28 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='ArtusAPI',
5
- version='1.3.9',
5
+ version='1.3.11',
6
6
  description='API to control Artus Family of Robots by Sarcomere Dynamics Inc',
7
- project_description='Python API to control Artus Family of Robots by Sarcomere Dynamics Inc',
8
- # package_dir={'': '/'}, # tells setuptools that your packages are under src
7
+ long_description=open('README.md').read(),
8
+ long_description_content_type='text/markdown',
9
9
  packages=find_packages(exclude=['data*', 'examples*', 'tests*','venv*', 'urdf*', 'ros2*']),
10
10
  author='Sarcomere Dynamics Inc.',
11
- url='https://sarcomeredynamics.com/home',
12
11
  install_requires=[
13
- 'psutil',
14
- 'pyserial',
12
+ 'psutil==5.9.8',
13
+ 'pyserial==3.5',
15
14
  'esptool',
16
15
  'pyyaml',
17
16
  'tqdm',
18
- 'requests'
19
17
  ],
20
18
  python_requires='>=3.10',
19
+ url='https://sarcomeredynamics.com/home',
20
+ project_urls={
21
+ 'Source': 'https://github.com/Sarcomere-Dynamics/Sarcomere_Dynamics_Resources',
22
+ },
23
+ keywords='robotics, artus, sarcomere dynamics, control',
21
24
  entry_points={
22
25
  'console_scripts': [
23
- 'artusapiflash = ArtusAPI.artus_api:main_flash',
24
- 'artusapimain = ArtusAPI.artus_api:main'
25
- ]
26
+ 'artusapiflash=ArtusAPI.artus_api:main_flash',
27
+ ],
26
28
  }
27
- # packages=find_packages(where='/'),
28
- # other setup configurations
29
- )
29
+ )
@@ -1 +0,0 @@
1
- from .communication import Communication
@@ -1,12 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: ArtusAPI
3
- Version: 1.3.9
4
- Summary: API to control Artus Family of Robots by Sarcomere Dynamics Inc
5
- Home-page: https://sarcomeredynamics.com/home
6
- Author: Sarcomere Dynamics Inc.
7
- License: UNKNOWN
8
- Platform: UNKNOWN
9
- Requires-Python: >=3.10
10
-
11
- UNKNOWN
12
-
@@ -1,6 +0,0 @@
1
- esptool
2
- psutil
3
- pyserial
4
- pyyaml
5
- requests
6
- tqdm
ArtusAPI-1.3.9/PKG-INFO DELETED
@@ -1,12 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: ArtusAPI
3
- Version: 1.3.9
4
- Summary: API to control Artus Family of Robots by Sarcomere Dynamics Inc
5
- Home-page: https://sarcomeredynamics.com/home
6
- Author: Sarcomere Dynamics Inc.
7
- License: UNKNOWN
8
- Platform: UNKNOWN
9
- Requires-Python: >=3.10
10
-
11
- UNKNOWN
12
-
File without changes
File without changes