rustypot 1.2.0__tar.gz → 1.3.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.
Files changed (47) hide show
  1. {rustypot-1.2.0 → rustypot-1.3.0}/.github/workflows/rust.yml +1 -1
  2. {rustypot-1.2.0 → rustypot-1.3.0}/Cargo.lock +165 -108
  3. {rustypot-1.2.0 → rustypot-1.3.0}/Cargo.toml +1 -1
  4. {rustypot-1.2.0 → rustypot-1.3.0}/Changelog.md +5 -0
  5. {rustypot-1.2.0 → rustypot-1.3.0}/PKG-INFO +1 -1
  6. {rustypot-1.2.0 → rustypot-1.3.0}/rustypot.pyi +22 -0
  7. {rustypot-1.2.0 → rustypot-1.3.0}/src/dynamixel_protocol/mod.rs +17 -0
  8. {rustypot-1.2.0 → rustypot-1.3.0}/src/dynamixel_protocol/packet.rs +1 -0
  9. {rustypot-1.2.0 → rustypot-1.3.0}/src/dynamixel_protocol/v1.rs +17 -0
  10. {rustypot-1.2.0 → rustypot-1.3.0}/src/dynamixel_protocol/v2.rs +21 -0
  11. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/feetech/sts3215.rs +56 -1
  12. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/servo_macro.rs +32 -0
  13. {rustypot-1.2.0 → rustypot-1.3.0}/.github/workflows/publish.yml +0 -0
  14. {rustypot-1.2.0 → rustypot-1.3.0}/.github/workflows/python.yml +0 -0
  15. {rustypot-1.2.0 → rustypot-1.3.0}/.gitignore +0 -0
  16. {rustypot-1.2.0 → rustypot-1.3.0}/LICENSE +0 -0
  17. {rustypot-1.2.0 → rustypot-1.3.0}/README.md +0 -0
  18. {rustypot-1.2.0 → rustypot-1.3.0}/examples/dxl_320_example.rs +0 -0
  19. {rustypot-1.2.0 → rustypot-1.3.0}/examples/dxl_mx_example.rs +0 -0
  20. {rustypot-1.2.0 → rustypot-1.3.0}/examples/dxl_sinus.rs +0 -0
  21. {rustypot-1.2.0 → rustypot-1.3.0}/examples/feetech_controller.rs +0 -0
  22. {rustypot-1.2.0 → rustypot-1.3.0}/examples/feetech_lowlevel_api.rs +0 -0
  23. {rustypot-1.2.0 → rustypot-1.3.0}/examples/feetech_sinus.py +0 -0
  24. {rustypot-1.2.0 → rustypot-1.3.0}/examples/orbita2d_poulpe.rs +0 -0
  25. {rustypot-1.2.0 → rustypot-1.3.0}/examples/orbita3d_foc.rs +0 -0
  26. {rustypot-1.2.0 → rustypot-1.3.0}/examples/orbita3d_poulpe.rs +0 -0
  27. {rustypot-1.2.0 → rustypot-1.3.0}/pyproject.toml +0 -0
  28. {rustypot-1.2.0 → rustypot-1.3.0}/src/bin/scan.rs +0 -0
  29. {rustypot-1.2.0 → rustypot-1.3.0}/src/bin/stub_gen.rs +0 -0
  30. {rustypot-1.2.0 → rustypot-1.3.0}/src/lib.rs +0 -0
  31. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/README.md +0 -0
  32. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/conversion.rs +0 -0
  33. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/ax.rs +0 -0
  34. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/mod.rs +0 -0
  35. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/mx.rs +0 -0
  36. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/xl320.rs +0 -0
  37. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/xl330.rs +0 -0
  38. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/xl430.rs +0 -0
  39. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/dynamixel/xm.rs +0 -0
  40. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/feetech/mod.rs +0 -0
  41. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/feetech/scs0009.rs +0 -0
  42. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/mod.rs +0 -0
  43. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/orbita/mod.rs +0 -0
  44. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/orbita/orbita2d_foc.rs +0 -0
  45. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/orbita/orbita2d_poulpe.rs +0 -0
  46. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/orbita/orbita3d_foc.rs +0 -0
  47. {rustypot-1.2.0 → rustypot-1.3.0}/src/servo/orbita/orbita3d_poulpe.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  name: Rust
2
2
 
3
- on: [push, pull_request]
3
+ on: [pull_request]
4
4
 
5
5
  env:
6
6
  CARGO_TERM_COLOR: always
@@ -11,12 +11,6 @@ dependencies = [
11
11
  "memchr",
12
12
  ]
13
13
 
14
- [[package]]
15
- name = "android-tzdata"
16
- version = "0.1.1"
17
- source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
19
-
20
14
  [[package]]
21
15
  name = "android_system_properties"
22
16
  version = "0.1.5"
@@ -78,9 +72,9 @@ dependencies = [
78
72
 
79
73
  [[package]]
80
74
  name = "anyhow"
81
- version = "1.0.98"
75
+ version = "1.0.100"
82
76
  source = "registry+https://github.com/rust-lang/crates.io-index"
83
- checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
77
+ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
84
78
 
85
79
  [[package]]
86
80
  name = "arc-swap"
@@ -102,9 +96,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
102
96
 
103
97
  [[package]]
104
98
  name = "bitflags"
105
- version = "2.9.1"
99
+ version = "2.9.4"
106
100
  source = "registry+https://github.com/rust-lang/crates.io-index"
107
- checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
101
+ checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
108
102
 
109
103
  [[package]]
110
104
  name = "bumpalo"
@@ -114,11 +108,11 @@ checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
114
108
 
115
109
  [[package]]
116
110
  name = "camino"
117
- version = "1.1.11"
111
+ version = "1.2.0"
118
112
  source = "registry+https://github.com/rust-lang/crates.io-index"
119
- checksum = "5d07aa9a93b00c76f71bc35d598bed923f6d4f3a9ca5c24b7737ae1a292841c0"
113
+ checksum = "e1de8bc0aa9e9385ceb3bf0c152e3a9b9544f6c4a912c8ae504e80c1f0368603"
120
114
  dependencies = [
121
- "serde",
115
+ "serde_core",
122
116
  ]
123
117
 
124
118
  [[package]]
@@ -146,38 +140,38 @@ dependencies = [
146
140
 
147
141
  [[package]]
148
142
  name = "cc"
149
- version = "1.2.32"
143
+ version = "1.2.38"
150
144
  source = "registry+https://github.com/rust-lang/crates.io-index"
151
- checksum = "2352e5597e9c544d5e6d9c95190d5d27738ade584fa8db0a16e130e5c2b5296e"
145
+ checksum = "80f41ae168f955c12fb8960b057d70d0ca153fb83182b57d86380443527be7e9"
152
146
  dependencies = [
147
+ "find-msvc-tools",
153
148
  "shlex",
154
149
  ]
155
150
 
156
151
  [[package]]
157
152
  name = "cfg-if"
158
- version = "1.0.1"
153
+ version = "1.0.3"
159
154
  source = "registry+https://github.com/rust-lang/crates.io-index"
160
- checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
155
+ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
161
156
 
162
157
  [[package]]
163
158
  name = "chrono"
164
- version = "0.4.41"
159
+ version = "0.4.42"
165
160
  source = "registry+https://github.com/rust-lang/crates.io-index"
166
- checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
161
+ checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
167
162
  dependencies = [
168
- "android-tzdata",
169
163
  "iana-time-zone",
170
164
  "js-sys",
171
165
  "num-traits",
172
166
  "wasm-bindgen",
173
- "windows-link",
167
+ "windows-link 0.2.0",
174
168
  ]
175
169
 
176
170
  [[package]]
177
171
  name = "clap"
178
- version = "4.5.43"
172
+ version = "4.5.48"
179
173
  source = "registry+https://github.com/rust-lang/crates.io-index"
180
- checksum = "50fd97c9dc2399518aa331917ac6f274280ec5eb34e555dd291899745c48ec6f"
174
+ checksum = "e2134bb3ea021b78629caa971416385309e0131b351b25e01dc16fb54e1b5fae"
181
175
  dependencies = [
182
176
  "clap_builder",
183
177
  "clap_derive",
@@ -185,9 +179,9 @@ dependencies = [
185
179
 
186
180
  [[package]]
187
181
  name = "clap_builder"
188
- version = "4.5.43"
182
+ version = "4.5.48"
189
183
  source = "registry+https://github.com/rust-lang/crates.io-index"
190
- checksum = "c35b5830294e1fa0462034af85cc95225a4cb07092c088c55bda3147cfcd8f65"
184
+ checksum = "c2ba64afa3c0a6df7fa517765e31314e983f51dda798ffba27b988194fb65dc9"
191
185
  dependencies = [
192
186
  "anstream",
193
187
  "anstyle",
@@ -197,9 +191,9 @@ dependencies = [
197
191
 
198
192
  [[package]]
199
193
  name = "clap_derive"
200
- version = "4.5.41"
194
+ version = "4.5.47"
201
195
  source = "registry+https://github.com/rust-lang/crates.io-index"
202
- checksum = "ef4f52386a59ca4c860f7393bcf8abd8dfd91ecccc0f774635ff68e92eeef491"
196
+ checksum = "bbfd7eae0b0f1a6e63d4b13c9c478de77c2eb546fba158ad50b4203dc24b9f9c"
203
197
  dependencies = [
204
198
  "heck",
205
199
  "proc-macro2",
@@ -260,11 +254,17 @@ version = "1.0.2"
260
254
  source = "registry+https://github.com/rust-lang/crates.io-index"
261
255
  checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
262
256
 
257
+ [[package]]
258
+ name = "find-msvc-tools"
259
+ version = "0.1.2"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "1ced73b1dacfc750a6db6c0a0c3a3853c8b41997e2e2c563dc90804ae6867959"
262
+
263
263
  [[package]]
264
264
  name = "hashbrown"
265
- version = "0.15.5"
265
+ version = "0.16.0"
266
266
  source = "registry+https://github.com/rust-lang/crates.io-index"
267
- checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
267
+ checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
268
268
 
269
269
  [[package]]
270
270
  name = "heck"
@@ -280,15 +280,15 @@ checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
280
280
 
281
281
  [[package]]
282
282
  name = "humantime"
283
- version = "2.2.0"
283
+ version = "2.3.0"
284
284
  source = "registry+https://github.com/rust-lang/crates.io-index"
285
- checksum = "9b112acc8b3adf4b107a8ec20977da0273a8c386765a3ec0229bd500a1443f9f"
285
+ checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424"
286
286
 
287
287
  [[package]]
288
288
  name = "iana-time-zone"
289
- version = "0.1.63"
289
+ version = "0.1.64"
290
290
  source = "registry+https://github.com/rust-lang/crates.io-index"
291
- checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8"
291
+ checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
292
292
  dependencies = [
293
293
  "android_system_properties",
294
294
  "core-foundation-sys",
@@ -310,9 +310,9 @@ dependencies = [
310
310
 
311
311
  [[package]]
312
312
  name = "indexmap"
313
- version = "2.10.0"
313
+ version = "2.11.4"
314
314
  source = "registry+https://github.com/rust-lang/crates.io-index"
315
- checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
315
+ checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
316
316
  dependencies = [
317
317
  "equivalent",
318
318
  "hashbrown",
@@ -326,9 +326,9 @@ checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd"
326
326
 
327
327
  [[package]]
328
328
  name = "inventory"
329
- version = "0.3.20"
329
+ version = "0.3.21"
330
330
  source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "ab08d7cd2c5897f2c949e5383ea7c7db03fb19130ffcfbf7eda795137ae3cb83"
331
+ checksum = "bc61209c082fbeb19919bee74b176221b27223e27b65d781eb91af24eb1fb46e"
332
332
  dependencies = [
333
333
  "rustversion",
334
334
  ]
@@ -377,9 +377,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
377
377
 
378
378
  [[package]]
379
379
  name = "js-sys"
380
- version = "0.3.77"
380
+ version = "0.3.80"
381
381
  source = "registry+https://github.com/rust-lang/crates.io-index"
382
- checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
382
+ checksum = "852f13bec5eba4ba9afbeb93fd7c13fe56147f055939ae21c43a29a0ecb2702e"
383
383
  dependencies = [
384
384
  "once_cell",
385
385
  "wasm-bindgen",
@@ -387,15 +387,15 @@ dependencies = [
387
387
 
388
388
  [[package]]
389
389
  name = "libc"
390
- version = "0.2.175"
390
+ version = "0.2.176"
391
391
  source = "registry+https://github.com/rust-lang/crates.io-index"
392
- checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
392
+ checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
393
393
 
394
394
  [[package]]
395
395
  name = "log"
396
- version = "0.4.27"
396
+ version = "0.4.28"
397
397
  source = "registry+https://github.com/rust-lang/crates.io-index"
398
- checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
398
+ checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
399
399
 
400
400
  [[package]]
401
401
  name = "mach2"
@@ -563,18 +563,18 @@ dependencies = [
563
563
 
564
564
  [[package]]
565
565
  name = "proc-macro-crate"
566
- version = "3.3.0"
566
+ version = "3.4.0"
567
567
  source = "registry+https://github.com/rust-lang/crates.io-index"
568
- checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
568
+ checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983"
569
569
  dependencies = [
570
- "toml_edit",
570
+ "toml_edit 0.23.6",
571
571
  ]
572
572
 
573
573
  [[package]]
574
574
  name = "proc-macro2"
575
- version = "1.0.96"
575
+ version = "1.0.101"
576
576
  source = "registry+https://github.com/rust-lang/crates.io-index"
577
- checksum = "beef09f85ae72cea1ef96ba6870c51e6382ebfa4f0e85b643459331f3daa5be0"
577
+ checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
578
578
  dependencies = [
579
579
  "unicode-ident",
580
580
  ]
@@ -610,11 +610,10 @@ dependencies = [
610
610
 
611
611
  [[package]]
612
612
  name = "pyo3-build-config"
613
- version = "0.25.1"
613
+ version = "0.26.0"
614
614
  source = "registry+https://github.com/rust-lang/crates.io-index"
615
- checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
615
+ checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
616
616
  dependencies = [
617
- "once_cell",
618
617
  "target-lexicon",
619
618
  ]
620
619
 
@@ -682,7 +681,7 @@ dependencies = [
682
681
  "num-complex",
683
682
  "numpy",
684
683
  "pyo3",
685
- "pyo3-build-config 0.25.1",
684
+ "pyo3-build-config 0.26.0",
686
685
  "pyo3-stub-gen-derive",
687
686
  "semver",
688
687
  "serde",
@@ -718,9 +717,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
718
717
 
719
718
  [[package]]
720
719
  name = "regex"
721
- version = "1.11.1"
720
+ version = "1.11.2"
722
721
  source = "registry+https://github.com/rust-lang/crates.io-index"
723
- checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
722
+ checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912"
724
723
  dependencies = [
725
724
  "aho-corasick",
726
725
  "memchr",
@@ -730,9 +729,9 @@ dependencies = [
730
729
 
731
730
  [[package]]
732
731
  name = "regex-automata"
733
- version = "0.4.9"
732
+ version = "0.4.10"
734
733
  source = "registry+https://github.com/rust-lang/crates.io-index"
735
- checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
734
+ checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6"
736
735
  dependencies = [
737
736
  "aho-corasick",
738
737
  "memchr",
@@ -741,9 +740,9 @@ dependencies = [
741
740
 
742
741
  [[package]]
743
742
  name = "regex-syntax"
744
- version = "0.8.5"
743
+ version = "0.8.6"
745
744
  source = "registry+https://github.com/rust-lang/crates.io-index"
746
- checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
745
+ checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
747
746
 
748
747
  [[package]]
749
748
  name = "rustc-hash"
@@ -759,7 +758,7 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
759
758
 
760
759
  [[package]]
761
760
  name = "rustypot"
762
- version = "1.2.0"
761
+ version = "1.3.0"
763
762
  dependencies = [
764
763
  "clap",
765
764
  "env_logger",
@@ -788,27 +787,38 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
788
787
 
789
788
  [[package]]
790
789
  name = "semver"
791
- version = "1.0.26"
790
+ version = "1.0.27"
792
791
  source = "registry+https://github.com/rust-lang/crates.io-index"
793
- checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
792
+ checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
794
793
  dependencies = [
795
794
  "serde",
795
+ "serde_core",
796
796
  ]
797
797
 
798
798
  [[package]]
799
799
  name = "serde"
800
- version = "1.0.219"
800
+ version = "1.0.226"
801
801
  source = "registry+https://github.com/rust-lang/crates.io-index"
802
- checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
802
+ checksum = "0dca6411025b24b60bfa7ec1fe1f8e710ac09782dca409ee8237ba74b51295fd"
803
+ dependencies = [
804
+ "serde_core",
805
+ "serde_derive",
806
+ ]
807
+
808
+ [[package]]
809
+ name = "serde_core"
810
+ version = "1.0.226"
811
+ source = "registry+https://github.com/rust-lang/crates.io-index"
812
+ checksum = "ba2ba63999edb9dac981fb34b3e5c0d111a69b0924e253ed29d83f7c99e966a4"
803
813
  dependencies = [
804
814
  "serde_derive",
805
815
  ]
806
816
 
807
817
  [[package]]
808
818
  name = "serde_derive"
809
- version = "1.0.219"
819
+ version = "1.0.226"
810
820
  source = "registry+https://github.com/rust-lang/crates.io-index"
811
- checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
821
+ checksum = "8db53ae22f34573731bafa1db20f04027b2d25e02d8205921b569171699cdb33"
812
822
  dependencies = [
813
823
  "proc-macro2",
814
824
  "quote",
@@ -817,14 +827,15 @@ dependencies = [
817
827
 
818
828
  [[package]]
819
829
  name = "serde_json"
820
- version = "1.0.142"
830
+ version = "1.0.145"
821
831
  source = "registry+https://github.com/rust-lang/crates.io-index"
822
- checksum = "030fedb782600dcbd6f02d479bf0d817ac3bb40d644745b769d6a96bc3afc5a7"
832
+ checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
823
833
  dependencies = [
824
834
  "itoa",
825
835
  "memchr",
826
836
  "ryu",
827
837
  "serde",
838
+ "serde_core",
828
839
  ]
829
840
 
830
841
  [[package]]
@@ -838,11 +849,11 @@ dependencies = [
838
849
 
839
850
  [[package]]
840
851
  name = "serialport"
841
- version = "4.7.2"
852
+ version = "4.7.3"
842
853
  source = "registry+https://github.com/rust-lang/crates.io-index"
843
- checksum = "cdb0bc984f6af6ef8bab54e6cf2071579ee75b9286aa9f2319a0d220c28b0a2b"
854
+ checksum = "2acaf3f973e8616d7ceac415f53fc60e190b2a686fbcf8d27d0256c741c5007b"
844
855
  dependencies = [
845
- "bitflags 2.9.1",
856
+ "bitflags 2.9.4",
846
857
  "cfg-if",
847
858
  "core-foundation",
848
859
  "core-foundation-sys",
@@ -887,9 +898,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
887
898
 
888
899
  [[package]]
889
900
  name = "syn"
890
- version = "2.0.104"
901
+ version = "2.0.106"
891
902
  source = "registry+https://github.com/rust-lang/crates.io-index"
892
- checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
903
+ checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
893
904
  dependencies = [
894
905
  "proc-macro2",
895
906
  "quote",
@@ -898,9 +909,9 @@ dependencies = [
898
909
 
899
910
  [[package]]
900
911
  name = "target-lexicon"
901
- version = "0.13.2"
912
+ version = "0.13.3"
902
913
  source = "registry+https://github.com/rust-lang/crates.io-index"
903
- checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
914
+ checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
904
915
 
905
916
  [[package]]
906
917
  name = "termcolor"
@@ -913,18 +924,18 @@ dependencies = [
913
924
 
914
925
  [[package]]
915
926
  name = "thiserror"
916
- version = "2.0.12"
927
+ version = "2.0.16"
917
928
  source = "registry+https://github.com/rust-lang/crates.io-index"
918
- checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
929
+ checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
919
930
  dependencies = [
920
931
  "thiserror-impl",
921
932
  ]
922
933
 
923
934
  [[package]]
924
935
  name = "thiserror-impl"
925
- version = "2.0.12"
936
+ version = "2.0.16"
926
937
  source = "registry+https://github.com/rust-lang/crates.io-index"
927
- checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
938
+ checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
928
939
  dependencies = [
929
940
  "proc-macro2",
930
941
  "quote",
@@ -939,8 +950,8 @@ checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
939
950
  dependencies = [
940
951
  "serde",
941
952
  "serde_spanned",
942
- "toml_datetime",
943
- "toml_edit",
953
+ "toml_datetime 0.6.11",
954
+ "toml_edit 0.22.27",
944
955
  ]
945
956
 
946
957
  [[package]]
@@ -952,6 +963,15 @@ dependencies = [
952
963
  "serde",
953
964
  ]
954
965
 
966
+ [[package]]
967
+ name = "toml_datetime"
968
+ version = "0.7.2"
969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
970
+ checksum = "32f1085dec27c2b6632b04c80b3bb1b4300d6495d1e129693bdda7d91e72eec1"
971
+ dependencies = [
972
+ "serde_core",
973
+ ]
974
+
955
975
  [[package]]
956
976
  name = "toml_edit"
957
977
  version = "0.22.27"
@@ -961,11 +981,32 @@ dependencies = [
961
981
  "indexmap",
962
982
  "serde",
963
983
  "serde_spanned",
964
- "toml_datetime",
984
+ "toml_datetime 0.6.11",
965
985
  "toml_write",
966
986
  "winnow",
967
987
  ]
968
988
 
989
+ [[package]]
990
+ name = "toml_edit"
991
+ version = "0.23.6"
992
+ source = "registry+https://github.com/rust-lang/crates.io-index"
993
+ checksum = "f3effe7c0e86fdff4f69cdd2ccc1b96f933e24811c5441d44904e8683e27184b"
994
+ dependencies = [
995
+ "indexmap",
996
+ "toml_datetime 0.7.2",
997
+ "toml_parser",
998
+ "winnow",
999
+ ]
1000
+
1001
+ [[package]]
1002
+ name = "toml_parser"
1003
+ version = "1.0.3"
1004
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1005
+ checksum = "4cf893c33be71572e0e9aa6dd15e6677937abd686b066eac3f8cd3531688a627"
1006
+ dependencies = [
1007
+ "winnow",
1008
+ ]
1009
+
969
1010
  [[package]]
970
1011
  name = "toml_write"
971
1012
  version = "0.1.2"
@@ -983,9 +1024,9 @@ dependencies = [
983
1024
 
984
1025
  [[package]]
985
1026
  name = "unicode-ident"
986
- version = "1.0.18"
1027
+ version = "1.0.19"
987
1028
  source = "registry+https://github.com/rust-lang/crates.io-index"
988
- checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
1029
+ checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
989
1030
 
990
1031
  [[package]]
991
1032
  name = "unindent"
@@ -1001,21 +1042,22 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1001
1042
 
1002
1043
  [[package]]
1003
1044
  name = "wasm-bindgen"
1004
- version = "0.2.100"
1045
+ version = "0.2.103"
1005
1046
  source = "registry+https://github.com/rust-lang/crates.io-index"
1006
- checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
1047
+ checksum = "ab10a69fbd0a177f5f649ad4d8d3305499c42bab9aef2f7ff592d0ec8f833819"
1007
1048
  dependencies = [
1008
1049
  "cfg-if",
1009
1050
  "once_cell",
1010
1051
  "rustversion",
1011
1052
  "wasm-bindgen-macro",
1053
+ "wasm-bindgen-shared",
1012
1054
  ]
1013
1055
 
1014
1056
  [[package]]
1015
1057
  name = "wasm-bindgen-backend"
1016
- version = "0.2.100"
1058
+ version = "0.2.103"
1017
1059
  source = "registry+https://github.com/rust-lang/crates.io-index"
1018
- checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
1060
+ checksum = "0bb702423545a6007bbc368fde243ba47ca275e549c8a28617f56f6ba53b1d1c"
1019
1061
  dependencies = [
1020
1062
  "bumpalo",
1021
1063
  "log",
@@ -1027,9 +1069,9 @@ dependencies = [
1027
1069
 
1028
1070
  [[package]]
1029
1071
  name = "wasm-bindgen-macro"
1030
- version = "0.2.100"
1072
+ version = "0.2.103"
1031
1073
  source = "registry+https://github.com/rust-lang/crates.io-index"
1032
- checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
1074
+ checksum = "fc65f4f411d91494355917b605e1480033152658d71f722a90647f56a70c88a0"
1033
1075
  dependencies = [
1034
1076
  "quote",
1035
1077
  "wasm-bindgen-macro-support",
@@ -1037,9 +1079,9 @@ dependencies = [
1037
1079
 
1038
1080
  [[package]]
1039
1081
  name = "wasm-bindgen-macro-support"
1040
- version = "0.2.100"
1082
+ version = "0.2.103"
1041
1083
  source = "registry+https://github.com/rust-lang/crates.io-index"
1042
- checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
1084
+ checksum = "ffc003a991398a8ee604a401e194b6b3a39677b3173d6e74495eb51b82e99a32"
1043
1085
  dependencies = [
1044
1086
  "proc-macro2",
1045
1087
  "quote",
@@ -1050,9 +1092,9 @@ dependencies = [
1050
1092
 
1051
1093
  [[package]]
1052
1094
  name = "wasm-bindgen-shared"
1053
- version = "0.2.100"
1095
+ version = "0.2.103"
1054
1096
  source = "registry+https://github.com/rust-lang/crates.io-index"
1055
- checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
1097
+ checksum = "293c37f4efa430ca14db3721dfbe48d8c33308096bd44d80ebaa775ab71ba1cf"
1056
1098
  dependencies = [
1057
1099
  "unicode-ident",
1058
1100
  ]
@@ -1075,11 +1117,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1075
1117
 
1076
1118
  [[package]]
1077
1119
  name = "winapi-util"
1078
- version = "0.1.9"
1120
+ version = "0.1.11"
1079
1121
  source = "registry+https://github.com/rust-lang/crates.io-index"
1080
- checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
1122
+ checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
1081
1123
  dependencies = [
1082
- "windows-sys 0.59.0",
1124
+ "windows-sys 0.61.0",
1083
1125
  ]
1084
1126
 
1085
1127
  [[package]]
@@ -1090,13 +1132,13 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1090
1132
 
1091
1133
  [[package]]
1092
1134
  name = "windows-core"
1093
- version = "0.61.2"
1135
+ version = "0.62.0"
1094
1136
  source = "registry+https://github.com/rust-lang/crates.io-index"
1095
- checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
1137
+ checksum = "57fe7168f7de578d2d8a05b07fd61870d2e73b4020e9f49aa00da8471723497c"
1096
1138
  dependencies = [
1097
1139
  "windows-implement",
1098
1140
  "windows-interface",
1099
- "windows-link",
1141
+ "windows-link 0.2.0",
1100
1142
  "windows-result",
1101
1143
  "windows-strings",
1102
1144
  ]
@@ -1129,22 +1171,28 @@ version = "0.1.3"
1129
1171
  source = "registry+https://github.com/rust-lang/crates.io-index"
1130
1172
  checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
1131
1173
 
1174
+ [[package]]
1175
+ name = "windows-link"
1176
+ version = "0.2.0"
1177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1178
+ checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
1179
+
1132
1180
  [[package]]
1133
1181
  name = "windows-result"
1134
- version = "0.3.4"
1182
+ version = "0.4.0"
1135
1183
  source = "registry+https://github.com/rust-lang/crates.io-index"
1136
- checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
1184
+ checksum = "7084dcc306f89883455a206237404d3eaf961e5bd7e0f312f7c91f57eb44167f"
1137
1185
  dependencies = [
1138
- "windows-link",
1186
+ "windows-link 0.2.0",
1139
1187
  ]
1140
1188
 
1141
1189
  [[package]]
1142
1190
  name = "windows-strings"
1143
- version = "0.4.2"
1191
+ version = "0.5.0"
1144
1192
  source = "registry+https://github.com/rust-lang/crates.io-index"
1145
- checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
1193
+ checksum = "7218c655a553b0bed4426cf54b20d7ba363ef543b52d515b3e48d7fd55318dda"
1146
1194
  dependencies = [
1147
- "windows-link",
1195
+ "windows-link 0.2.0",
1148
1196
  ]
1149
1197
 
1150
1198
  [[package]]
@@ -1165,6 +1213,15 @@ dependencies = [
1165
1213
  "windows-targets 0.53.3",
1166
1214
  ]
1167
1215
 
1216
+ [[package]]
1217
+ name = "windows-sys"
1218
+ version = "0.61.0"
1219
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1220
+ checksum = "e201184e40b2ede64bc2ea34968b28e33622acdbbf37104f0e4a33f7abe657aa"
1221
+ dependencies = [
1222
+ "windows-link 0.2.0",
1223
+ ]
1224
+
1168
1225
  [[package]]
1169
1226
  name = "windows-targets"
1170
1227
  version = "0.52.6"
@@ -1187,7 +1244,7 @@ version = "0.53.3"
1187
1244
  source = "registry+https://github.com/rust-lang/crates.io-index"
1188
1245
  checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
1189
1246
  dependencies = [
1190
- "windows-link",
1247
+ "windows-link 0.1.3",
1191
1248
  "windows_aarch64_gnullvm 0.53.0",
1192
1249
  "windows_aarch64_msvc 0.53.0",
1193
1250
  "windows_i686_gnu 0.53.0",
@@ -1296,9 +1353,9 @@ checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
1296
1353
 
1297
1354
  [[package]]
1298
1355
  name = "winnow"
1299
- version = "0.7.12"
1356
+ version = "0.7.13"
1300
1357
  source = "registry+https://github.com/rust-lang/crates.io-index"
1301
- checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95"
1358
+ checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
1302
1359
  dependencies = [
1303
1360
  "memchr",
1304
1361
  ]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rustypot"
3
- version = "1.2.0"
3
+ version = "1.3.0"
4
4
  edition = "2021"
5
5
  license = "Apache-2.0"
6
6
  authors = ["Pollen Robotics"]
@@ -1,3 +1,8 @@
1
+ ## Version 1.3.0
2
+
3
+ - Add reboot support in core library.
4
+ - Add ping and reboot support in python bindings.
5
+
1
6
  ## Version 1.2.0
2
7
 
3
8
  - Add support for AX motors (see https://github.com/pollen-robotics/rustypot/pull/93, thanks to @kacper-uminski)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rustypot
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -10,6 +10,8 @@ class AxPyController:
10
10
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
11
11
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
12
12
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
13
+ def ping(self, id:builtins.int) -> builtins.bool: ...
14
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
13
15
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
14
16
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
15
17
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -141,6 +143,8 @@ class MxPyController:
141
143
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
142
144
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
143
145
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
146
+ def ping(self, id:builtins.int) -> builtins.bool: ...
147
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
144
148
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
145
149
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
146
150
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -282,6 +286,8 @@ class Orbita2dFocPyController:
282
286
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
283
287
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
284
288
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
289
+ def ping(self, id:builtins.int) -> builtins.bool: ...
290
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
285
291
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
286
292
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
287
293
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -435,6 +441,8 @@ class Orbita2dPoulpePyController:
435
441
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
436
442
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
437
443
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
444
+ def ping(self, id:builtins.int) -> builtins.bool: ...
445
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
438
446
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
439
447
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
440
448
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -504,6 +512,8 @@ class Orbita3dFocPyController:
504
512
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
505
513
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
506
514
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
515
+ def ping(self, id:builtins.int) -> builtins.bool: ...
516
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
507
517
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
508
518
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
509
519
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -619,6 +629,8 @@ class Orbita3dPoulpePyController:
619
629
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
620
630
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
621
631
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
632
+ def ping(self, id:builtins.int) -> builtins.bool: ...
633
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
622
634
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
623
635
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
624
636
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -714,6 +726,8 @@ class Scs0009PyController:
714
726
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
715
727
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
716
728
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
729
+ def ping(self, id:builtins.int) -> builtins.bool: ...
730
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
717
731
  def sync_read_model(self, ids:list) -> typing.Any: ...
718
732
  def read_model(self, id:builtins.int) -> typing.Any: ...
719
733
  def sync_read_id(self, ids:list) -> typing.Any: ...
@@ -889,6 +903,8 @@ class Sts3215PyController:
889
903
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
890
904
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
891
905
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
906
+ def ping(self, id:builtins.int) -> builtins.bool: ...
907
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
892
908
  def sync_read_model(self, ids:list) -> typing.Any: ...
893
909
  def read_model(self, id:builtins.int) -> typing.Any: ...
894
910
  def sync_read_id(self, ids:list) -> typing.Any: ...
@@ -1096,6 +1112,8 @@ class Xl320PyController:
1096
1112
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
1097
1113
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
1098
1114
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
1115
+ def ping(self, id:builtins.int) -> builtins.bool: ...
1116
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
1099
1117
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
1100
1118
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
1101
1119
  def sync_read_firmware_version(self, ids:list) -> typing.Any: ...
@@ -1207,6 +1225,8 @@ class Xl330PyController:
1207
1225
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
1208
1226
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
1209
1227
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
1228
+ def ping(self, id:builtins.int) -> builtins.bool: ...
1229
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
1210
1230
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
1211
1231
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
1212
1232
  def sync_read_model_information(self, ids:list) -> typing.Any: ...
@@ -1480,6 +1500,8 @@ class Xl430PyController:
1480
1500
  def write_raw_data(self, id:builtins.int, addr:builtins.int, data:list) -> None: ...
1481
1501
  def sync_read_raw_data(self, ids:list, addr:builtins.int, length:builtins.int) -> typing.Any: ...
1482
1502
  def sync_write_raw_data(self, ids:list, addr:builtins.int, data:list) -> None: ...
1503
+ def ping(self, id:builtins.int) -> builtins.bool: ...
1504
+ def reboot(self, id:builtins.int) -> builtins.bool: ...
1483
1505
  def sync_read_model_number(self, ids:list) -> typing.Any: ...
1484
1506
  def read_model_number(self, id:builtins.int) -> typing.Any: ...
1485
1507
  def sync_read_model_information(self, ids:list) -> typing.Any: ...
@@ -118,6 +118,17 @@ impl DynamixelProtocolHandler {
118
118
  }
119
119
  }
120
120
 
121
+ /// Send a reboot instruction.
122
+ ///
123
+ /// Reboot the motor with specified `id`.
124
+ /// Returns an [CommunicationErrorKind] if the communication fails.
125
+ pub fn reboot(&self, serial_port: &mut dyn serialport::SerialPort, id: u8) -> Result<bool> {
126
+ match &self.protocol {
127
+ ProtocolKind::V1(p) => p.reboot(serial_port, id),
128
+ ProtocolKind::V2(p) => p.reboot(serial_port, id),
129
+ }
130
+ }
131
+
121
132
  /// Reads raw register bytes.
122
133
  ///
123
134
  /// Sends a read instruction to the motor and wait for the status packet in response.
@@ -333,6 +344,12 @@ trait Protocol<P: Packet> {
333
344
  Ok(self.read_status_packet(port, id).is_ok())
334
345
  }
335
346
 
347
+ fn reboot(&self, port: &mut dyn SerialPort, id: u8) -> Result<bool> {
348
+ self.send_instruction_packet(port, P::reboot_packet(id).as_ref())?;
349
+
350
+ Ok(self.read_status_packet(port, id).is_ok())
351
+ }
352
+
336
353
  fn read(&self, port: &mut dyn SerialPort, id: u8, addr: u8, length: u8) -> Result<Vec<u8>> {
337
354
  self.send_instruction_packet(port, P::read_packet(id, addr, length).as_ref())?;
338
355
  self.read_status_packet(port, id)
@@ -10,6 +10,7 @@ pub trait Packet {
10
10
  fn get_payload_size(header: &[u8]) -> Result<usize>;
11
11
 
12
12
  fn ping_packet(id: u8) -> Box<dyn InstructionPacket<Self>>;
13
+ fn reboot_packet(id: u8) -> Box<dyn InstructionPacket<Self>>;
13
14
 
14
15
  fn read_packet(id: u8, addr: u8, length: u8) -> Box<dyn InstructionPacket<Self>>;
15
16
  fn write_packet(id: u8, addr: u8, data: &[u8]) -> Box<dyn InstructionPacket<Self>>;
@@ -23,6 +23,14 @@ impl Packet for PacketV1 {
23
23
  })
24
24
  }
25
25
 
26
+ fn reboot_packet(id: u8) -> Box<dyn InstructionPacket<Self>> {
27
+ Box::new(InstructionPacketV1 {
28
+ id,
29
+ instruction: InstructionKindV1::Reboot,
30
+ params: vec![],
31
+ })
32
+ }
33
+
26
34
  fn read_packet(id: u8, addr: u8, length: u8) -> Box<dyn InstructionPacket<Self>> {
27
35
  Box::new(InstructionPacketV1 {
28
36
  id,
@@ -222,6 +230,7 @@ pub(crate) enum InstructionKindV1 {
222
230
  Ping,
223
231
  Read,
224
232
  Write,
233
+ Reboot,
225
234
  SyncWrite,
226
235
  SyncRead,
227
236
  }
@@ -232,6 +241,7 @@ impl InstructionKindV1 {
232
241
  InstructionKindV1::Ping => 0x01,
233
242
  InstructionKindV1::Read => 0x02,
234
243
  InstructionKindV1::Write => 0x03,
244
+ InstructionKindV1::Reboot => 0x08,
235
245
  InstructionKindV1::SyncRead => 0x82,
236
246
  InstructionKindV1::SyncWrite => 0x83,
237
247
  }
@@ -261,6 +271,13 @@ mod tests {
261
271
  assert_eq!(bytes, [0xFF, 0xFF, 0x01, 0x02, 0x01, 0xFB]);
262
272
  }
263
273
 
274
+ #[test]
275
+ fn create_reboot_packet() {
276
+ let p = PacketV1::reboot_packet(2);
277
+ let bytes = p.to_bytes();
278
+ assert_eq!(bytes, [0xFF, 0xFF, 0x02, 0x02, 0x08, 0xF3]);
279
+ }
280
+
264
281
  #[test]
265
282
  fn create_read_packet() {
266
283
  let p = PacketV1::read_packet(1, 0x2B, 1);
@@ -39,6 +39,14 @@ impl Packet for PacketV2 {
39
39
  })
40
40
  }
41
41
 
42
+ fn reboot_packet(id: u8) -> Box<dyn InstructionPacket<Self>> {
43
+ Box::new(InstructionPacketV2 {
44
+ id,
45
+ instruction: InstructionKindV2::Reboot,
46
+ params: vec![],
47
+ })
48
+ }
49
+
42
50
  fn read_packet(id: u8, addr: u8, length: u8) -> Box<dyn InstructionPacket<Self>> {
43
51
  Box::new(InstructionPacketV2 {
44
52
  id,
@@ -214,6 +222,7 @@ pub(crate) enum InstructionKindV2 {
214
222
  Ping,
215
223
  Read,
216
224
  Write,
225
+ Reboot,
217
226
  SyncRead,
218
227
  SyncWrite,
219
228
  }
@@ -224,6 +233,7 @@ impl InstructionKindV2 {
224
233
  InstructionKindV2::Ping => 0x01,
225
234
  InstructionKindV2::Read => 0x02,
226
235
  InstructionKindV2::Write => 0x03,
236
+ InstructionKindV2::Reboot => 0x08,
227
237
  InstructionKindV2::SyncRead => 0x82,
228
238
  InstructionKindV2::SyncWrite => 0x83,
229
239
  }
@@ -310,6 +320,7 @@ mod tests {
310
320
 
311
321
  assert_eq!(crc.to_le_bytes(), [0x16, 0xd2]);
312
322
  }
323
+
313
324
  #[test]
314
325
  fn create_ping_packet() {
315
326
  let p = PacketV2::ping_packet(2);
@@ -320,6 +331,16 @@ mod tests {
320
331
  );
321
332
  }
322
333
 
334
+ #[test]
335
+ fn create_reboot_packet() {
336
+ let p = PacketV2::reboot_packet(2);
337
+ let bytes = p.to_bytes();
338
+ assert_eq!(
339
+ bytes,
340
+ [0xff, 0xff, 0xfd, 0x0, 0x2, 0x3, 0x0, 0x8, 0x2f, 0x72]
341
+ );
342
+ }
343
+
323
344
  #[test]
324
345
  fn create_read_packet() {
325
346
  let p = PacketV2::read_packet(1, 0x2B, 2);
@@ -28,7 +28,7 @@ generate_servo!(
28
28
  reg: (ccw_dead_zone, rw, 27, u8, None),
29
29
  reg: (protection_current, rw, 28, u16, None),
30
30
  reg: (angular_resolution, rw, 30, u8, None),
31
- reg: (offset, rw, 31, i16, AnglePosition),
31
+ reg: (offset, rw, 31, u16, Offset),
32
32
  reg: (mode, rw, 33, u8, None),
33
33
  reg: (protective_torque, rw, 34, u8, None),
34
34
  reg: (protection_time, rw, 35, u8, None),
@@ -76,3 +76,58 @@ impl Conversion for Velocity {
76
76
  value as u16
77
77
  }
78
78
  }
79
+
80
+ pub struct Offset;
81
+ const MAX_MAGNITUDE: u16 = 2047;
82
+
83
+ impl Conversion for Offset {
84
+ type RegisterType = u16;
85
+ type UsiType = f64;
86
+
87
+ fn from_raw(raw: u16) -> f64 {
88
+ use std::f64::consts::PI;
89
+ let negative = (raw >> 11) == 1;
90
+ let magnitude = raw % (MAX_MAGNITUDE + 1);
91
+
92
+ let float_magnitude = PI * f64::from(magnitude) / f64::from(MAX_MAGNITUDE);
93
+
94
+ if negative {
95
+ -float_magnitude
96
+ } else {
97
+ float_magnitude
98
+ }
99
+ }
100
+
101
+ fn to_raw(value: f64) -> u16 {
102
+ use std::f64::consts::PI;
103
+
104
+ let magnitude = (value.abs() * f64::from(MAX_MAGNITUDE) / PI) as u16;
105
+
106
+ if value.is_sign_negative() {
107
+ magnitude | (1 << 11)
108
+ } else {
109
+ magnitude
110
+ }
111
+ }
112
+ }
113
+
114
+ #[cfg(test)]
115
+ mod tests {
116
+ #[test]
117
+ fn offset_conversions() {
118
+ use crate::servo::{conversion::Conversion, feetech::sts3215::Offset};
119
+ use std::f64::consts::{FRAC_PI_2, PI};
120
+
121
+ assert_eq!(Offset::to_raw(0.0), 0);
122
+ assert_eq!(Offset::to_raw(PI), 2047);
123
+ assert_eq!(Offset::to_raw(-PI), 4095);
124
+ assert_eq!(Offset::to_raw(FRAC_PI_2), 1023);
125
+ assert_eq!(Offset::to_raw(-FRAC_PI_2), 3071);
126
+
127
+ assert_eq!(Offset::from_raw(0), 0.0);
128
+ assert_eq!(Offset::from_raw(2047), PI);
129
+ assert_eq!(Offset::from_raw(4095), -PI);
130
+ assert_eq!(Offset::from_raw(1023), 1.5700289617109715); // About PI/2
131
+ assert_eq!(Offset::from_raw(3071), -1.5700289617109715); // About -PI/2
132
+ }
133
+ }
@@ -41,6 +41,7 @@ macro_rules! generate_servo {
41
41
  use pyo3_stub_gen::derive::*;
42
42
 
43
43
  $crate::generate_protocol_constructor!($servo_name, $protocol);
44
+ $crate::generate_ping_reboot!($servo_name);
44
45
  $crate::generate_addr_read_write!($servo_name);
45
46
 
46
47
  $(
@@ -117,6 +118,27 @@ macro_rules! generate_protocol_constructor {
117
118
  };
118
119
  }
119
120
 
121
+ #[macro_export]
122
+ macro_rules! generate_ping_reboot {
123
+ ($servo_macro:ident) => {
124
+ paste::paste! {
125
+ impl [<$servo_macro:camel Controller>] {
126
+ pub fn ping(&mut self, id: u8) -> $crate::Result<bool> {
127
+ let dph = self.dph.as_ref().unwrap();
128
+ let serial_port = self.serial_port.as_mut().unwrap().as_mut();
129
+ dph.ping(serial_port, id)
130
+ }
131
+
132
+ pub fn reboot(&mut self, id: u8) -> $crate::Result<bool> {
133
+ let dph = self.dph.as_ref().unwrap();
134
+ let serial_port = self.serial_port.as_mut().unwrap().as_mut();
135
+ dph.reboot(serial_port, id)
136
+ }
137
+ }
138
+ }
139
+ };
140
+ }
141
+
120
142
  #[macro_export]
121
143
  macro_rules! generate_addr_read_write {
122
144
  ($servo_name:ident) => {
@@ -230,6 +252,16 @@ macro_rules! generate_addr_read_write {
230
252
  .map_err(|e| pyo3::exceptions::PyRuntimeError::new_err(e.to_string()))?;
231
253
  Ok(())
232
254
  }
255
+
256
+ pub fn ping(&self, id: u8) -> PyResult<bool> {
257
+ self.0.lock().unwrap().ping(id)
258
+ .map_err(|e| pyo3::exceptions::PyRuntimeError::new_err(e.to_string()))
259
+ }
260
+
261
+ pub fn reboot(&self, id: u8) -> PyResult<bool> {
262
+ self.0.lock().unwrap().reboot(id)
263
+ .map_err(|e| pyo3::exceptions::PyRuntimeError::new_err(e.to_string()))
264
+ }
233
265
  }
234
266
  }
235
267
  };
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