Skip to content

Commit

Permalink
refactor(shift_decider): rework parameters (#5380)
Browse files Browse the repository at this point in the history
* refactor(shift_decider): rework parameters

Signed-off-by: PhoebeWu21 <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: PhoebeWu21 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
PhoebeWu21 and pre-commit-ci[bot] authored Nov 22, 2023
1 parent 8f6b62b commit bae5ea7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions control/shift_decider/schema/shift_decider.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Parameters for Shift Decider Node",
"type": "object",
"definitions": {
"shift_decider": {
"type": "object",
"properties": {
"park_on_goal": {
"type": "boolean",
"description": "Setting true to part on goal.",
"default": "true"
}
},
"required": ["park_on_goal"]
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/shift_decider"
}
},
"required": ["ros__parameters"]
}
},
"required": ["/**"]
}

0 comments on commit bae5ea7

Please sign in to comment.