com.shinolab.autd3-sdk.core 0.7.0 → 0.9.0
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.
package/AssemblyInfo.cs
CHANGED
|
@@ -5,7 +5,6 @@ using System.Runtime.CompilerServices;
|
|
|
5
5
|
[assembly: InternalsVisibleTo("AUTD3.Pattern.Holo")]
|
|
6
6
|
[assembly: InternalsVisibleTo("AUTD3.Modulation")]
|
|
7
7
|
[assembly: InternalsVisibleTo("AUTD3.Link.Echocat")]
|
|
8
|
-
[assembly: InternalsVisibleTo("AUTD3.Link.Ethercrab")]
|
|
9
8
|
[assembly: InternalsVisibleTo("AUTD3.Link.Remote")]
|
|
10
9
|
[assembly: InternalsVisibleTo("AUTD3.Link.TwinCAT")]
|
|
11
10
|
[assembly: InternalsVisibleTo("AUTD3.Link.Nop")]
|
package/Geometry.cs
CHANGED
|
@@ -26,6 +26,40 @@ namespace AUTD3
|
|
|
26
26
|
_handle = new GeometryHandle(handle);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
private Geometry(GeometryHandle handle)
|
|
30
|
+
{
|
|
31
|
+
_handle = handle;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public static Geometry FromJson(string json)
|
|
35
|
+
{
|
|
36
|
+
var err = new byte[NativeAbi.ErrorBufferLength];
|
|
37
|
+
var handle = NativeCore.autd3_core_geometry_from_json(json, err, (UIntPtr)err.Length);
|
|
38
|
+
if (handle == IntPtr.Zero)
|
|
39
|
+
{
|
|
40
|
+
throw new Autd3Exception(NativeUtil.Utf8(err));
|
|
41
|
+
}
|
|
42
|
+
return new Geometry(new GeometryHandle(handle));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public string ToJson()
|
|
46
|
+
{
|
|
47
|
+
var err = new byte[NativeAbi.ErrorBufferLength];
|
|
48
|
+
var ptr = NativeCore.autd3_core_geometry_to_json(Handle, err, (UIntPtr)err.Length);
|
|
49
|
+
if (ptr == IntPtr.Zero)
|
|
50
|
+
{
|
|
51
|
+
throw new Autd3Exception(NativeUtil.Utf8(err));
|
|
52
|
+
}
|
|
53
|
+
try
|
|
54
|
+
{
|
|
55
|
+
return NativeUtil.PtrToString(ptr);
|
|
56
|
+
}
|
|
57
|
+
finally
|
|
58
|
+
{
|
|
59
|
+
NativeCore.autd3_core_free_string(ptr);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
29
63
|
public int NumDevices => (int)NativeCore.autd3_core_geometry_num_devices(Handle);
|
|
30
64
|
|
|
31
65
|
public int NumTransducers => (int)NativeCore.autd3_core_geometry_num_transducers(Handle);
|
package/Native.cs
CHANGED
|
@@ -23,6 +23,15 @@ namespace AUTD3
|
|
|
23
23
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
24
24
|
internal static extern IntPtr autd3_core_geometry_new(Autd3Device[] devices, UIntPtr len);
|
|
25
25
|
|
|
26
|
+
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
27
|
+
internal static extern IntPtr autd3_core_geometry_from_json([MarshalAs(UnmanagedType.LPUTF8Str)] string json, byte[] outErr, UIntPtr outErrLen);
|
|
28
|
+
|
|
29
|
+
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
30
|
+
internal static extern IntPtr autd3_core_geometry_to_json(GeometryHandle geometry, byte[] outErr, UIntPtr outErrLen);
|
|
31
|
+
|
|
32
|
+
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
33
|
+
internal static extern void autd3_core_free_string(IntPtr ptr);
|
|
34
|
+
|
|
26
35
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
27
36
|
internal static extern UIntPtr autd3_core_geometry_num_devices(GeometryHandle geometry);
|
|
28
37
|
|
|
@@ -96,7 +105,7 @@ namespace AUTD3
|
|
|
96
105
|
internal static class NativeAbi
|
|
97
106
|
{
|
|
98
107
|
internal const ushort Major = 0;
|
|
99
|
-
internal const ushort Minor =
|
|
108
|
+
internal const ushort Minor = 9;
|
|
100
109
|
internal const ushort Patch = 0;
|
|
101
110
|
|
|
102
111
|
internal const int ErrorBufferLength = 1024;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/THIRD-PARTY-LICENSES.md
CHANGED
|
@@ -5,7 +5,7 @@ The following is a list of those components and the full text of their licenses.
|
|
|
5
5
|
|
|
6
6
|
## Overview
|
|
7
7
|
|
|
8
|
-
- MIT License (
|
|
8
|
+
- MIT License (57)
|
|
9
9
|
- Apache License 2.0 (3)
|
|
10
10
|
- Unicode License v3 (1)
|
|
11
11
|
|
|
@@ -854,8 +854,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
854
854
|
|
|
855
855
|
Used by:
|
|
856
856
|
|
|
857
|
-
- autd3-rs-core 0.
|
|
858
|
-
- autd3-cpu-wire 0.
|
|
857
|
+
- autd3-rs-core 0.9.0 — https://github.com/shinolab/autd3-sdk
|
|
858
|
+
- autd3-cpu-wire 0.9.0 — https://github.com/shinolab/autd3-sdk
|
|
859
859
|
|
|
860
860
|
```
|
|
861
861
|
MIT License
|
|
@@ -886,8 +886,8 @@ SOFTWARE.
|
|
|
886
886
|
|
|
887
887
|
Used by:
|
|
888
888
|
|
|
889
|
-
- autd3-ffi-abi 0.
|
|
890
|
-
- autd3-ffi-core 0.
|
|
889
|
+
- autd3-ffi-abi 0.9.0 — https://github.com/shinolab/autd3-sdk
|
|
890
|
+
- autd3-ffi-core 0.9.0 — https://github.com/shinolab/autd3-sdk
|
|
891
891
|
- chrono 0.4.45 — https://github.com/chronotope/chrono
|
|
892
892
|
- wide 1.5.0 — https://github.com/Lokathor/wide
|
|
893
893
|
- winapi-i686-pc-windows-gnu 0.4.0 — https://github.com/retep998/winapi-rs
|
|
@@ -931,14 +931,20 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
931
931
|
Used by:
|
|
932
932
|
|
|
933
933
|
- hermit-abi 0.5.2 — https://github.com/hermit-os/hermit-rs
|
|
934
|
+
- itoa 1.0.18 — https://github.com/dtolnay/itoa
|
|
934
935
|
- pin-project-lite 0.2.17 — https://github.com/taiki-e/pin-project-lite
|
|
935
936
|
- proc-macro2 1.0.106 — https://github.com/dtolnay/proc-macro2
|
|
936
937
|
- quote 1.0.46 — https://github.com/dtolnay/quote
|
|
937
938
|
- rustversion 1.0.22 — https://github.com/dtolnay/rustversion
|
|
939
|
+
- serde 1.0.228 — https://github.com/serde-rs/serde
|
|
940
|
+
- serde_core 1.0.228 — https://github.com/serde-rs/serde
|
|
941
|
+
- serde_derive 1.0.228 — https://github.com/serde-rs/serde
|
|
942
|
+
- serde_json 1.0.150 — https://github.com/serde-rs/json
|
|
938
943
|
- syn 2.0.118 — https://github.com/dtolnay/syn
|
|
939
944
|
- thiserror-impl 2.0.18 — https://github.com/dtolnay/thiserror
|
|
940
945
|
- thiserror 2.0.18 — https://github.com/dtolnay/thiserror
|
|
941
946
|
- unicode-ident 1.0.24 — https://github.com/dtolnay/unicode-ident
|
|
947
|
+
- zmij 1.0.21 — https://github.com/dtolnay/zmij
|
|
942
948
|
|
|
943
949
|
```
|
|
944
950
|
Permission is hereby granted, free of charge, to any
|
|
@@ -1029,6 +1035,37 @@ SOFTWARE.
|
|
|
1029
1035
|
|
|
1030
1036
|
```
|
|
1031
1037
|
|
|
1038
|
+
## MIT License
|
|
1039
|
+
|
|
1040
|
+
Used by:
|
|
1041
|
+
|
|
1042
|
+
- memchr 2.8.2 — https://github.com/BurntSushi/memchr
|
|
1043
|
+
|
|
1044
|
+
```
|
|
1045
|
+
The MIT License (MIT)
|
|
1046
|
+
|
|
1047
|
+
Copyright (c) 2015 Andrew Gallant
|
|
1048
|
+
|
|
1049
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1050
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1051
|
+
in the Software without restriction, including without limitation the rights
|
|
1052
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1053
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1054
|
+
furnished to do so, subject to the following conditions:
|
|
1055
|
+
|
|
1056
|
+
The above copyright notice and this permission notice shall be included in
|
|
1057
|
+
all copies or substantial portions of the Software.
|
|
1058
|
+
|
|
1059
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1060
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1061
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1062
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1063
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1064
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1065
|
+
THE SOFTWARE.
|
|
1066
|
+
|
|
1067
|
+
```
|
|
1068
|
+
|
|
1032
1069
|
## Unicode License v3
|
|
1033
1070
|
|
|
1034
1071
|
Used by:
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/shinolab/autd3-sdk.git",
|
|
6
6
|
"directory": "bindings/unity/com.shinolab.autd3-sdk.core"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.9.0",
|
|
9
9
|
"displayName": "AUTD3 Core",
|
|
10
10
|
"description": "AUTD3 core types, geometry and units (Unity binding).",
|
|
11
11
|
"unity": "6000.0",
|