JordanRobot.MotorDefinition
1.0.0-alpha.1
dotnet add package JordanRobot.MotorDefinition --version 1.0.0-alpha.1
NuGet\Install-Package JordanRobot.MotorDefinition -Version 1.0.0-alpha.1
<PackageReference Include="JordanRobot.MotorDefinition" Version="1.0.0-alpha.1" />
<PackageVersion Include="JordanRobot.MotorDefinition" Version="1.0.0-alpha.1" />
<PackageReference Include="JordanRobot.MotorDefinition" />
paket add JordanRobot.MotorDefinition --version 1.0.0-alpha.1
#r "nuget: JordanRobot.MotorDefinition, 1.0.0-alpha.1"
#:package JordanRobot.MotorDefinition@1.0.0-alpha.1
#addin nuget:?package=JordanRobot.MotorDefinition&version=1.0.0-alpha.1&prerelease
#tool nuget:?package=JordanRobot.MotorDefinition&version=1.0.0-alpha.1&prerelease
JordanRobot.MotorDefinition
.NET library for loading and saving motor definition JSON files.
The data model shape is:
- Motor → Drive(s) → Voltage(s) → Performance Curve(s) → Data Point(s)
Install
This package is currently intended to be consumed from a local .nupkg produced via dotnet pack.
Once published to NuGet.org, you can install it via:
- the NuGet Package Manager in Visual Studio,
- by visiting the NuGet.org page.
- or by command line:
dotnet add package JordanRobot.MotorDefinition
Load
using JordanRobot.MotorDefinition;
using JordanRobot.MotorDefinition.Model;
ServoMotor motor = MotorFile.Load(@"C:\path\to\motor.json");
Console.WriteLine(motor.MotorName);
Save
using JordanRobot.MotorDefinition;
using JordanRobot.MotorDefinition.Model;
var motor = new ServoMotor
{
MotorName = "My Motor",
Manufacturer = "Acme",
PartNumber = "M-123"
};
MotorFile.Save(motor, @"C:\path\to\motor.json");
Lightweight shape probe (quick filter)
If you need a fast pre-check (for example, filtering *.json files before doing a full load), you can probe a JSON document:
using JordanRobot.MotorDefinition;
using System.Text.Json;
using var document = JsonDocument.Parse(File.ReadAllText(@"C:\path\to\candidate.json"));
bool looksLikeMotorFile = MotorFile.IsLikelyMotorDefinition(document);
This is intentionally a lightweight shape check, not a full schema+semantic validator.
Schema version
The library writes the schema version from ServoMotor.CurrentSchemaVersion when saving.
Further resources
- Documentation home: https://github.com/jordanrobot/MotorDefinition/tree/main/docs
- Quick Start: https://github.com/jordanrobot/MotorDefinition/blob/main/docs/QuickStart.md
- User Guide: https://github.com/jordanrobot/MotorDefinition/blob/main/docs/UserGuide.md
- Terms and definitions: https://github.com/jordanrobot/MotorDefinition/blob/main/docs/TermsAndDefinitions.md
- API documentation: https://github.com/jordanrobot/MotorDefinition/blob/main/docs/api/index.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Tare (>= 1.1.0-alpha.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-alpha.1 | 61 | 1/10/2026 |