Skip to content

Commit 2719e23

Browse files
refactor(external_cmd_selector): rework parameters (#8198)
* refactor(external_cmd_selector): rework parameters Signed-off-by: Batuhan Beytekin <batuhanbeytekin@gmail.com> * style(pre-commit): autofix --------- Signed-off-by: Batuhan Beytekin <batuhanbeytekin@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6c5f9b1 commit 2719e23

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Diff for: control/autoware_external_cmd_selector/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ The current mode is set via service, `remote` is remotely operated, `local` is t
3232
| `/external/selected/hazard_lights_cmd` | autoware_vehicle_msgs::msg::HazardLightsCommand | Pass through hazard light with current mode. |
3333
| `/external/selected/heartbeat` | TBD | Pass through heartbeat with current mode. |
3434
| `/external/selected/turn_indicators_cmd` | autoware_vehicle_msgs::msg::TurnIndicatorsCommand | Pass through turn indicator with current mode. |
35+
36+
## Parameters
37+
38+
{{json_to_markdown("control/autoware_external_cmd_selector/schema/external_cmd_selector.schema.json")}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameters for external_cmd_selector",
4+
"type": "object",
5+
"definitions": {
6+
"external_cmd_selector_node": {
7+
"type": "object",
8+
"properties": {
9+
"update_rate": {
10+
"type": "number",
11+
"default": 10.0,
12+
"description": "The rate in Hz at which the external command selector node updates."
13+
},
14+
"initial_selector_mode": {
15+
"type": "string",
16+
"enum": ["local", "remote"],
17+
"default": "local",
18+
"description": "The initial mode for command selection, either 'local' or 'remote'."
19+
}
20+
},
21+
"required": ["update_rate", "initial_selector_mode"]
22+
}
23+
},
24+
"properties": {
25+
"/**": {
26+
"type": "object",
27+
"properties": {
28+
"ros__parameters": {
29+
"$ref": "#/definitions/external_cmd_selector_node"
30+
}
31+
},
32+
"required": ["ros__parameters"]
33+
}
34+
},
35+
"required": ["/**"]
36+
}

0 commit comments

Comments
 (0)