| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Spot .NET is a lightweight C# SDK for controlling Boston Dynamics robots.
Install-Package Spot.NET -Version 0.1.0
dotnet add package Spot.NET --version 0.1.0
<PackageReference Include="Spot.NET" Version="0.1.0" />
using Sharks.Spot;
// Or whatever your entrypoint/function is
public static int main()
{
// Create Spot Robot object with credentials to authenticate with it
Robot Spot = new Robot(
new ContactInfo()
{
Credentials = new RobotCredentials
{
Username = "SpotUsername",
Password = "SpotPassword",
Address = "192.168.0.0:443"
}
},
"Program Name"
);
// When your ready call connect to create the authenticated channel
Spot.Connect();
// Calling this will aquire a lease if we haven't already
Sit(Spot); // Call a sit command on the Robot we've connected to
}using Sharks.Spot;
// Or whatever your entrypoint/function is
public static int main()
{
// Create Spot Robot object with credentials to authenticate with it
Robot Spot = new Robot(
new ContactInfo()
{
Credentials = new RobotCredentials
{
Username = "SpotUsername",
Password = "SpotPassword",
Address = "192.168.0.0:443"
}
},
"Program Name"
);
Spot.Connect();
// Api subject to change
Walk(Spot, 5.0f, Direction.Forwards, WalkFinishedCallback);
}
private void WalkFinishedCallback()
{
Console.WriteLine("Done walking!");
}| Option | Type | Description |
|---|---|---|
| ContactInfo | ContactInfo | A struct containing all the necessary credentials to talk and authenticate with the Robot. |
This library opens an authenticated GRPC channel to a Robot and contains Boston Dynamics protobufs compiled to C#, allowing you to send whatever commands you want to it.
Read the wiki for extra documentation.
Project created and maintained by Sharks Interactive.
README.MD and general SDK structure, styling, practices etc, modelled after and taken from the excellent Toucan-JS
| Back | FazBrowse Home | New Git URL |