-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema): add joint positions to application schema (#215)
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Joint Positions", | ||
"description": "A description of the joint configurations available in the application", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
"^[a-z]([a-z0-9_]?[a-z0-9])*$": { | ||
"title": "Joint Positions", | ||
"description": "The names and positions of a static joint configuration in the application", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"joint_names": { | ||
"title": "Joint Names", | ||
"description": "The names of the joints in the same order as the positions", | ||
"type": "array", | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string", | ||
"example": [ | ||
"joint_1", | ||
"shoulder_joint" | ||
] | ||
} | ||
}, | ||
"positions": { | ||
"title": "Joint Positions", | ||
"description": "The positions of the joints in the same order as the names (in SI units)", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "number" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"joint_names", | ||
"positions" | ||
] | ||
} | ||
} | ||
} |