orca_core 0.1.0__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.
- orca_core-0.1.0/PKG-INFO +62 -0
- orca_core-0.1.0/README.md +40 -0
- orca_core-0.1.0/orca_core/__init__.py +1 -0
- orca_core-0.1.0/orca_core/api/__init__.py +0 -0
- orca_core-0.1.0/orca_core/api/api.py +0 -0
- orca_core-0.1.0/orca_core/calibration.yaml +301 -0
- orca_core-0.1.0/orca_core/core.py +432 -0
- orca_core-0.1.0/orca_core/hardware/__init__.py +0 -0
- orca_core-0.1.0/orca_core/hardware/dynamixel_client.py +561 -0
- orca_core-0.1.0/orca_core/orca_config.yaml +103 -0
- orca_core-0.1.0/orca_core/utils/__init__.py +0 -0
- orca_core-0.1.0/orca_core/utils/yaml_utils.py +31 -0
- orca_core-0.1.0/pyproject.toml +23 -0
orca_core-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: orca_core
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Core Python Controller of the ORCA Hand. Handles all hardware interaction, logic and abstracts control. Provides API for basic functionality and info of the hand.
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: clemens-chr
|
|
7
|
+
Author-email: cchristoph@student.ethz.ch
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Requires-Dist: dynamixel-sdk (>=3.7.31,<4.0.0)
|
|
18
|
+
Requires-Dist: numpy (>=2.2.3,<3.0.0)
|
|
19
|
+
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# Orca Core
|
|
23
|
+
|
|
24
|
+
OrcaHand class is used to abtract hardware, control the hand of the robot with simple high level control methods in joint space.
|
|
25
|
+
|
|
26
|
+
## Get Started
|
|
27
|
+
|
|
28
|
+
To get started with Orca Core, follow these steps:
|
|
29
|
+
|
|
30
|
+
1. **Clone the repository**:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
git clone git@github.com:orcahand/orca_core.git
|
|
34
|
+
cd orca_core
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
2. **Install dependencies using Poetry**:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
poetry install
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
3. **Run the example usage**:
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
# Example usage
|
|
47
|
+
from orca_core import OrcaHand
|
|
48
|
+
|
|
49
|
+
hand = OrcaHand()
|
|
50
|
+
status = hand.connect()
|
|
51
|
+
print(status)
|
|
52
|
+
hand.calibrate()
|
|
53
|
+
|
|
54
|
+
# Set the desired joint positions to 0
|
|
55
|
+
hand.set_joint_pos({joint: 0 for joint in hand.joint_ids})
|
|
56
|
+
hand.disconnect()
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Config file
|
|
60
|
+
|
|
61
|
+
The configuration file `core/orca_config.yaml` is specific to the hand (currently the only hand we have) and defines everything from auto calibration, joint limits, and control settings. This file is crucial for the proper functioning of the OrcaHand class.
|
|
62
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Orca Core
|
|
2
|
+
|
|
3
|
+
OrcaHand class is used to abtract hardware, control the hand of the robot with simple high level control methods in joint space.
|
|
4
|
+
|
|
5
|
+
## Get Started
|
|
6
|
+
|
|
7
|
+
To get started with Orca Core, follow these steps:
|
|
8
|
+
|
|
9
|
+
1. **Clone the repository**:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
git clone git@github.com:orcahand/orca_core.git
|
|
13
|
+
cd orca_core
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
2. **Install dependencies using Poetry**:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
poetry install
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
3. **Run the example usage**:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
# Example usage
|
|
26
|
+
from orca_core import OrcaHand
|
|
27
|
+
|
|
28
|
+
hand = OrcaHand()
|
|
29
|
+
status = hand.connect()
|
|
30
|
+
print(status)
|
|
31
|
+
hand.calibrate()
|
|
32
|
+
|
|
33
|
+
# Set the desired joint positions to 0
|
|
34
|
+
hand.set_joint_pos({joint: 0 for joint in hand.joint_ids})
|
|
35
|
+
hand.disconnect()
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Config file
|
|
39
|
+
|
|
40
|
+
The configuration file `core/orca_config.yaml` is specific to the hand (currently the only hand we have) and defines everything from auto calibration, joint limits, and control settings. This file is crucial for the proper functioning of the OrcaHand class.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .core import OrcaHand
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
calibrated: true
|
|
2
|
+
joint_to_motor_ratios:
|
|
3
|
+
1: 0.02366713285446167
|
|
4
|
+
2: 0.021767187118530273
|
|
5
|
+
3: 0.018212737355913434
|
|
6
|
+
4: 0.017664746940135957
|
|
7
|
+
5: 0.02331540584564209
|
|
8
|
+
6: 0.010844148695468903
|
|
9
|
+
7: 0.026014122792652677
|
|
10
|
+
8: 0.020332060919867622
|
|
11
|
+
9: 0.015320637822151184
|
|
12
|
+
10: 0.020465224981307983
|
|
13
|
+
11: 0.01909422278404236
|
|
14
|
+
12: 0.02122454047203064
|
|
15
|
+
13: 0.019757671998097345
|
|
16
|
+
14: 1
|
|
17
|
+
15: 0.01670505404472351
|
|
18
|
+
16: 0.01976822018623352
|
|
19
|
+
17: 1
|
|
20
|
+
motor_limits:
|
|
21
|
+
1:
|
|
22
|
+
- 2.9098079204559326
|
|
23
|
+
- 6.223206520080566
|
|
24
|
+
2:
|
|
25
|
+
- 4.507909297943115
|
|
26
|
+
- 6.249284267425537
|
|
27
|
+
3:
|
|
28
|
+
- null
|
|
29
|
+
- 4.5319929122924805
|
|
30
|
+
4:
|
|
31
|
+
- 2.1052353382110596
|
|
32
|
+
- 4.9315948486328125
|
|
33
|
+
5:
|
|
34
|
+
- 5.220137119293213
|
|
35
|
+
- 8.484293937683105
|
|
36
|
+
6:
|
|
37
|
+
- null
|
|
38
|
+
- 2.0874409675598145
|
|
39
|
+
7:
|
|
40
|
+
- 1.8844953775405884
|
|
41
|
+
- 5.526472568511963
|
|
42
|
+
8:
|
|
43
|
+
- null
|
|
44
|
+
- null
|
|
45
|
+
9:
|
|
46
|
+
- null
|
|
47
|
+
- 7.5904436111450195
|
|
48
|
+
10:
|
|
49
|
+
- 5.690608024597168
|
|
50
|
+
- 7.327826023101807
|
|
51
|
+
11:
|
|
52
|
+
- 4.876218318939209
|
|
53
|
+
- 6.403756141662598
|
|
54
|
+
12:
|
|
55
|
+
- 2.738462448120117
|
|
56
|
+
- 4.436425685882568
|
|
57
|
+
13:
|
|
58
|
+
- -0.7154486775398254
|
|
59
|
+
- 1.8530486822128296
|
|
60
|
+
14:
|
|
61
|
+
- null
|
|
62
|
+
- null
|
|
63
|
+
15:
|
|
64
|
+
- null
|
|
65
|
+
- 5.252349853515625
|
|
66
|
+
16:
|
|
67
|
+
- 6.518651008605957
|
|
68
|
+
- 9.68156623840332
|
|
69
|
+
17:
|
|
70
|
+
- null
|
|
71
|
+
- null
|
|
72
|
+
position_logs:
|
|
73
|
+
15:
|
|
74
|
+
- 1.73493230342865
|
|
75
|
+
- 2.001844882965088
|
|
76
|
+
- 2.267223596572876
|
|
77
|
+
- 2.541806221008301
|
|
78
|
+
- 2.8271265029907227
|
|
79
|
+
- 3.1231849193573
|
|
80
|
+
- 3.423845052719116
|
|
81
|
+
- 3.7275733947753906
|
|
82
|
+
- 4.034369468688965
|
|
83
|
+
- 4.335029602050781
|
|
84
|
+
- 4.615748405456543
|
|
85
|
+
- 4.8596510887146
|
|
86
|
+
- 5.045262813568115
|
|
87
|
+
- 5.166447162628174
|
|
88
|
+
- 5.250816345214844
|
|
89
|
+
- 5.252350330352783
|
|
90
|
+
- 5.252350330352783
|
|
91
|
+
- 5.252350330352783
|
|
92
|
+
- 5.252350330352783
|
|
93
|
+
- 5.252350330352783
|
|
94
|
+
- 5.252350330352783
|
|
95
|
+
- 5.252350330352783
|
|
96
|
+
- 5.252350330352783
|
|
97
|
+
- 5.253884315490723
|
|
98
|
+
9:
|
|
99
|
+
- 6.12825345993042
|
|
100
|
+
- 6.413573741912842
|
|
101
|
+
- 6.686622142791748
|
|
102
|
+
- 6.956603050231934
|
|
103
|
+
- 7.221981525421143
|
|
104
|
+
- 7.396855354309082
|
|
105
|
+
- 7.4904279708862305
|
|
106
|
+
- 7.514971733093262
|
|
107
|
+
- 7.516505718231201
|
|
108
|
+
- 7.516505718231201
|
|
109
|
+
- 7.516505718231201
|
|
110
|
+
- 7.516505718231201
|
|
111
|
+
- 7.518039703369141
|
|
112
|
+
- 7.518039703369141
|
|
113
|
+
- 7.534913539886475
|
|
114
|
+
- 7.562525272369385
|
|
115
|
+
- 7.562525272369385
|
|
116
|
+
- 7.562525272369385
|
|
117
|
+
- 7.562525272369385
|
|
118
|
+
- 7.562525272369385
|
|
119
|
+
- 7.564059257507324
|
|
120
|
+
- 7.564059257507324
|
|
121
|
+
- 7.565593242645264
|
|
122
|
+
- 7.5886030197143555
|
|
123
|
+
- 7.590137004852295
|
|
124
|
+
- 7.590137004852295
|
|
125
|
+
- 7.590137004852295
|
|
126
|
+
- 7.590137004852295
|
|
127
|
+
- 7.590137004852295
|
|
128
|
+
- 7.590137004852295
|
|
129
|
+
- 7.591670989990234
|
|
130
|
+
- 7.591670989990234
|
|
131
|
+
- 7.591670989990234
|
|
132
|
+
6:
|
|
133
|
+
- -0.2485048919916153
|
|
134
|
+
- 0.004601942375302315
|
|
135
|
+
- 0.25617480278015137
|
|
136
|
+
- 0.5108156204223633
|
|
137
|
+
- 0.7731263041496277
|
|
138
|
+
- 1.035436987876892
|
|
139
|
+
- 1.2962137460708618
|
|
140
|
+
- 1.555456519126892
|
|
141
|
+
- 1.810097336769104
|
|
142
|
+
- 1.998776912689209
|
|
143
|
+
- 2.012582778930664
|
|
144
|
+
- 2.012582778930664
|
|
145
|
+
- 2.012582778930664
|
|
146
|
+
- 2.012582778930664
|
|
147
|
+
- 2.012582778930664
|
|
148
|
+
- 2.012582778930664
|
|
149
|
+
- 2.012582778930664
|
|
150
|
+
- 2.012582778930664
|
|
151
|
+
- 2.012582778930664
|
|
152
|
+
- 2.077009916305542
|
|
153
|
+
- 2.0862138271331787
|
|
154
|
+
- 2.0862138271331787
|
|
155
|
+
- 2.087747812271118
|
|
156
|
+
- 2.087747812271118
|
|
157
|
+
- 2.087747812271118
|
|
158
|
+
- 2.087747812271118
|
|
159
|
+
- 2.087747812271118
|
|
160
|
+
- 2.087747812271118
|
|
161
|
+
- 2.087747812271118
|
|
162
|
+
- 2.087747812271118
|
|
163
|
+
3:
|
|
164
|
+
- 1.5493205785751343
|
|
165
|
+
- 1.8146992921829224
|
|
166
|
+
- 2.046330451965332
|
|
167
|
+
- 2.270291566848755
|
|
168
|
+
- 2.5617480278015137
|
|
169
|
+
- 2.854738235473633
|
|
170
|
+
- 3.161534309387207
|
|
171
|
+
- 3.460660696029663
|
|
172
|
+
- 3.742913007736206
|
|
173
|
+
- 4.003689765930176
|
|
174
|
+
- 4.226117134094238
|
|
175
|
+
- 4.373379230499268
|
|
176
|
+
- 4.470019817352295
|
|
177
|
+
- 4.529845237731934
|
|
178
|
+
- 4.529845237731934
|
|
179
|
+
- 4.529845237731934
|
|
180
|
+
- 4.5329132080078125
|
|
181
|
+
- 4.5329132080078125
|
|
182
|
+
- 4.5329132080078125
|
|
183
|
+
- 4.5329132080078125
|
|
184
|
+
- 4.5329132080078125
|
|
185
|
+
- 4.5329132080078125
|
|
186
|
+
- 4.5329132080078125
|
|
187
|
+
current_logs:
|
|
188
|
+
15:
|
|
189
|
+
- 530.6400146484375
|
|
190
|
+
- 534.6599731445312
|
|
191
|
+
- 537.3400268554688
|
|
192
|
+
- 533.3200073242188
|
|
193
|
+
- 529.2999877929688
|
|
194
|
+
- 531.97998046875
|
|
195
|
+
- 529.2999877929688
|
|
196
|
+
- 546.719970703125
|
|
197
|
+
- 542.7000122070312
|
|
198
|
+
- 556.0999755859375
|
|
199
|
+
- 562.7999877929688
|
|
200
|
+
- 515.9000244140625
|
|
201
|
+
- 550.739990234375
|
|
202
|
+
- 594.9600219726562
|
|
203
|
+
- 598.97998046875
|
|
204
|
+
- 603.0
|
|
205
|
+
- 603.0
|
|
206
|
+
- 603.0
|
|
207
|
+
- 604.3400268554688
|
|
208
|
+
- 603.0
|
|
209
|
+
- 601.6599731445312
|
|
210
|
+
- 603.0
|
|
211
|
+
- 604.3400268554688
|
|
212
|
+
- 603.0
|
|
213
|
+
9:
|
|
214
|
+
- 139.36000061035156
|
|
215
|
+
- 132.66000366210938
|
|
216
|
+
- 135.33999633789062
|
|
217
|
+
- 135.33999633789062
|
|
218
|
+
- 151.4199981689453
|
|
219
|
+
- 369.8399963378906
|
|
220
|
+
- 596.2999877929688
|
|
221
|
+
- 603.0
|
|
222
|
+
- 603.0
|
|
223
|
+
- 603.0
|
|
224
|
+
- 603.0
|
|
225
|
+
- 603.0
|
|
226
|
+
- 603.0
|
|
227
|
+
- 600.3200073242188
|
|
228
|
+
- 580.219970703125
|
|
229
|
+
- 604.3400268554688
|
|
230
|
+
- 604.3400268554688
|
|
231
|
+
- 603.0
|
|
232
|
+
- 604.3400268554688
|
|
233
|
+
- 603.0
|
|
234
|
+
- 603.0
|
|
235
|
+
- 603.0
|
|
236
|
+
- 603.0
|
|
237
|
+
- 598.97998046875
|
|
238
|
+
- 601.6599731445312
|
|
239
|
+
- 603.0
|
|
240
|
+
- 604.3400268554688
|
|
241
|
+
- 603.0
|
|
242
|
+
- 604.3400268554688
|
|
243
|
+
- 604.3400268554688
|
|
244
|
+
- 604.3400268554688
|
|
245
|
+
- 603.0
|
|
246
|
+
- 603.0
|
|
247
|
+
6:
|
|
248
|
+
- 179.55999755859375
|
|
249
|
+
- 170.17999267578125
|
|
250
|
+
- 85.76000213623047
|
|
251
|
+
- 76.37999725341797
|
|
252
|
+
- 71.0199966430664
|
|
253
|
+
- 56.279998779296875
|
|
254
|
+
- 58.959999084472656
|
|
255
|
+
- 88.44000244140625
|
|
256
|
+
- 103.18000030517578
|
|
257
|
+
- 272.0199890136719
|
|
258
|
+
- 269.3399963378906
|
|
259
|
+
- 268.0
|
|
260
|
+
- 268.0
|
|
261
|
+
- 268.0
|
|
262
|
+
- 266.6600036621094
|
|
263
|
+
- 268.0
|
|
264
|
+
- 268.0
|
|
265
|
+
- 266.6600036621094
|
|
266
|
+
- 269.3399963378906
|
|
267
|
+
- 269.3399963378906
|
|
268
|
+
- 268.0
|
|
269
|
+
- 266.6600036621094
|
|
270
|
+
- 268.0
|
|
271
|
+
- 268.0
|
|
272
|
+
- 268.0
|
|
273
|
+
- 268.0
|
|
274
|
+
- 268.0
|
|
275
|
+
- 268.0
|
|
276
|
+
- 268.0
|
|
277
|
+
- 268.0
|
|
278
|
+
3:
|
|
279
|
+
- -136.67999267578125
|
|
280
|
+
- -29.479999542236328
|
|
281
|
+
- 46.900001525878906
|
|
282
|
+
- -73.69999694824219
|
|
283
|
+
- -168.83999633789062
|
|
284
|
+
- -168.83999633789062
|
|
285
|
+
- -148.74000549316406
|
|
286
|
+
- -105.86000061035156
|
|
287
|
+
- -77.72000122070312
|
|
288
|
+
- -25.459999084472656
|
|
289
|
+
- 293.4599914550781
|
|
290
|
+
- 426.1199951171875
|
|
291
|
+
- 534.6599731445312
|
|
292
|
+
- 603.0
|
|
293
|
+
- 601.6599731445312
|
|
294
|
+
- 603.0
|
|
295
|
+
- 603.0
|
|
296
|
+
- 604.3400268554688
|
|
297
|
+
- 603.0
|
|
298
|
+
- 604.3400268554688
|
|
299
|
+
- 603.0
|
|
300
|
+
- 603.0
|
|
301
|
+
- 604.3400268554688
|