Skip to content

Commit

Permalink
feat(schema): add joint positions to application schema (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
domire8 authored Feb 4, 2025
1 parent 31d7450 commit be4cd52
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions schemas/applications/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Release Versions:
## Upcoming changes

- feat: add intra process comms field to component schema (#192)
- feat: add joint positions to application schema (#215)

## 2-0-2

Expand Down
3 changes: 3 additions & 0 deletions schemas/applications/schema/application.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
"frames": {
"$ref": "frames.schema.json"
},
"joint_positions": {
"$ref": "joint_positions.schema.json"
},
"graph": {
"$ref": "graph.schema.json"
}
Expand Down
44 changes: 44 additions & 0 deletions schemas/applications/schema/joint_positions.schema.json
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"
]
}
}
}

0 comments on commit be4cd52

Please sign in to comment.