Anki Vector .NET SDK (unofficial) to the developer-unit WebViz API.
WARNING This API is unlikely to work or be useful to you.
The Vector SDK gives you direct access to Anki Vector's internal modules within the developer builds. This will work only with a developer build, and only a handful of such units have been found.
The name is patterned after Anki.Vector.SDK. Be glad I didn't call it "Toad (The Websocket)".
Credits: this section lifted from the Anki.Vector.SDK Readme
If you working on Windows, download Visual Studio 2019 Community Edition to get started. This version is free for personal use.
To get started on Mac and Linux, you can download .NET Core 3.0.
using Anki.Vector.WebVizSDK;
Session session;
...
session = new Session("192.168.1.179");
session.Connected += (sender, args) =>
{
session.OnModuleChange("AudioEvents", Listener);
session.OnModuleChange("MicData", Listener);
session.OnModuleChange("SoundReactions", Listener);
session.OnModuleChange("SpeechRecognizerSys", Listener);
};
// Begin the Connection with the Vector unit
session.ConnectBegin();
...
void Listener(object sender, ModuleEventArgs args)
{
var s = JsonSerializer.Serialize(args.data);
Console.WriteLine($"{args.moduleName}-> {s}");
}
- Fork the project
- Make your proposed changes
- Create a pull request
- Randall Maas
This project is licensed under the BSD 2-Clause License - see the LICENSE file for details. Nothing particular about it; I just needed a license.
The code can be integrated into other SDKs, such as Wayne Venables's Anki.Vector.SDK, I'll relicense the code for that.