@contactci/com.contactci.coreconductor 2.3.2
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.
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeTarget": {
|
|
3
|
+
"name": ".NETCoreApp,Version=v8.0",
|
|
4
|
+
"signature": ""
|
|
5
|
+
},
|
|
6
|
+
"compilationOptions": {},
|
|
7
|
+
"targets": {
|
|
8
|
+
".NETCoreApp,Version=v8.0": {
|
|
9
|
+
"CoreConductor/1.0.0": {
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"ContactCI.Maestro.libcore": "2.3.1"
|
|
12
|
+
},
|
|
13
|
+
"runtime": {
|
|
14
|
+
"CoreConductor.dll": {}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"ContactCI.Maestro.libcore/2.3.1": {
|
|
18
|
+
"runtimeTargets": {
|
|
19
|
+
"runtimes/win-x64/native/include/contactci.h": {
|
|
20
|
+
"rid": "win-x64",
|
|
21
|
+
"assetType": "native",
|
|
22
|
+
"fileVersion": "0.0.0.0"
|
|
23
|
+
},
|
|
24
|
+
"runtimes/win-x64/native/libcci.dll": {
|
|
25
|
+
"rid": "win-x64",
|
|
26
|
+
"assetType": "native",
|
|
27
|
+
"fileVersion": "0.0.0.0"
|
|
28
|
+
},
|
|
29
|
+
"runtimes/win-x64/native/libccic.dll": {
|
|
30
|
+
"rid": "win-x64",
|
|
31
|
+
"assetType": "native",
|
|
32
|
+
"fileVersion": "0.0.0.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"libraries": {
|
|
39
|
+
"CoreConductor/1.0.0": {
|
|
40
|
+
"type": "project",
|
|
41
|
+
"serviceable": false,
|
|
42
|
+
"sha512": ""
|
|
43
|
+
},
|
|
44
|
+
"ContactCI.Maestro.libcore/2.3.1": {
|
|
45
|
+
"type": "package",
|
|
46
|
+
"serviceable": true,
|
|
47
|
+
"sha512": "sha512-5BN/HDHwbXxx8L/HmrXXUg/oGbQWBfDRwE92pKZha1O62THMm7qkUpC3YNRFoFDMjs5iIBGjXs13kit3aHGp2A==",
|
|
48
|
+
"path": "contactci.maestro.libcore/2.3.1",
|
|
49
|
+
"hashPath": "contactci.maestro.libcore.2.3.1.nupkg.sha512"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
Binary file
|
|
Binary file
|
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## Maestro Core Conductor
|
|
2
|
+
|
|
3
|
+
This is a thin P/Invoke wrapper around the C++ legacycore DLLs. With this you can develop C# applications against the Maestro Windows service.
|
|
4
|
+
|
|
5
|
+
# Installation
|
|
6
|
+
|
|
7
|
+
This package includes `ContactCI.Maestro.libcore` as a dependency. This is hosted in the same repo, and should automatically download as part of the `nuget restore` operation.
|
|
8
|
+
|
|
9
|
+
The `libcore` package contains the C++ DLLs as a reusable component. This is intended for non-C# applications to consume.
|
|
10
|
+
|
|
11
|
+
These libraries are also published as NPM packages.
|
|
12
|
+
|
|
13
|
+
# Usage
|
|
14
|
+
|
|
15
|
+
First, call `MaestroSessionManager.StartSession`, which will return `true` if the Windows service is alive and offers the client a session. There is a corresponding `StopSession` to de-register your client with the service. Please ensure your client application can gracefully handle all exit conditions and closes its session properly.
|
|
16
|
+
|
|
17
|
+
From there, the functions are mostly self-explanatory.
|
|
18
|
+
|
|
19
|
+
Internally, the current haptic state is stored in a section of memory shared between the service and client. An event system notifies the clients and host when a state change has happened or is requested, respectively. The state object which is exposed by this API is a *copy* of that state, so you'll need to rely on the events to make sure you're current.
|
|
20
|
+
|
|
21
|
+
To subscribe to haptic state change events, you must call `StartHapticWatcher`. This spawns a Task on the thread pool that waits on the named event and dispatches events. To cancel this thread, you must call `StopHapticWatcher`. `StopSession` will internally stop the haptic watcher if it is active.
|
|
22
|
+
|
|
23
|
+
To read the current haptics, call `GetHaptics`. You'll get a haptic state struct for each hand, or null if that hand is not present.
|
|
24
|
+
|
|
25
|
+
The `SetHaptics` call is similar, though you must explicitly tell the service which hand to apply haptics to. This *immediately* signals the service to apply haptics to the selected glove, if it's online.
|
|
26
|
+
|
|
27
|
+
# Developing
|
|
28
|
+
See [BUILDING.md](../BUILDING.md) (only available internally)
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@contactci/com.contactci.coreconductor",
|
|
3
|
+
"version": "2.3.2",
|
|
4
|
+
"licensesUrl": "https://contact.ci/pages/sdk-eula",
|
|
5
|
+
"description": "C# wrapper library for interacting with the Maestro Windows service",
|
|
6
|
+
"displayName": "Contact CI Maestro CoreConductor",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@contactci/com.contactci.libcore": "~2.3.1"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"contact",
|
|
12
|
+
"contact ci",
|
|
13
|
+
"maestro",
|
|
14
|
+
"haptics",
|
|
15
|
+
"hand tracking",
|
|
16
|
+
"virtual reality",
|
|
17
|
+
"augmented reality",
|
|
18
|
+
"mixed reality",
|
|
19
|
+
"vr",
|
|
20
|
+
"ar",
|
|
21
|
+
"xr"
|
|
22
|
+
],
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Contact CI",
|
|
25
|
+
"email": "support@contact.ci",
|
|
26
|
+
"url": "https://contact.ci"
|
|
27
|
+
},
|
|
28
|
+
"documentationUrl": "https://contact-control-interfaces.github.io/maestro-sdk-docs/",
|
|
29
|
+
"files": [
|
|
30
|
+
"CoreConductor/bin/Release/net8.0/CoreConductor.dll",
|
|
31
|
+
"CoreConductor/bin/Release/net8.0/CoreConductor.pdb",
|
|
32
|
+
"CoreConductor/bin/Release/net8.0/CoreConductor.deps.json"
|
|
33
|
+
]
|
|
34
|
+
}
|