Skip to content

Commit dc9fd4b

Browse files
refactor(external_cmd_selector): rework parameters
Signed-off-by: Batuhan Beytekin <batuhanbeytekin@gmail.com>
1 parent a742e82 commit dc9fd4b

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

control/autoware_external_cmd_selector/README.md

Lines changed: 4 additions & 0 deletions
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")}}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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": [
22+
"update_rate",
23+
"initial_selector_mode"
24+
]
25+
}
26+
},
27+
"properties": {
28+
"/**": {
29+
"type": "object",
30+
"properties": {
31+
"ros__parameters": {
32+
"$ref": "#/definitions/external_cmd_selector_node"
33+
}
34+
},
35+
"required": ["ros__parameters"]
36+
}
37+
},
38+
"required": ["/**"]
39+
}
40+

0 commit comments

Comments
 (0)