-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dummy_infrastructure): rework parameters (#5275)
Signed-off-by: Yuntianyi Chen <[email protected]>
- Loading branch information
1 parent
9f41bf1
commit b038006
Showing
6 changed files
with
81 additions
and
14 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
10 changes: 5 additions & 5 deletions
10
system/dummy_infrastructure/config/dummy_infrastructure.param.yaml
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/**: | ||
ros__parameters: | ||
update_rate_hz: 10.0 | ||
use_first_command: false | ||
use_command_state: true | ||
instrument_id: '0' | ||
approval: true | ||
is_finalized: true | ||
use_first_command: true | ||
use_command_state: false | ||
instrument_id: "" | ||
approval: false | ||
is_finalized: false |
1 change: 1 addition & 0 deletions
1
system/dummy_infrastructure/launch/dummy_infrastructure.launch.xml
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
65 changes: 65 additions & 0 deletions
65
system/dummy_infrastructure/schema/dummy_infrastructure_node.schema.json
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,65 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Dummy Infrastructure Node", | ||
"type": "object", | ||
"definitions": { | ||
"dummy_infrastructure": { | ||
"type": "object", | ||
"properties": { | ||
"update_rate_hz": { | ||
"type": "number", | ||
"default": "10.0", | ||
"description": "Timer callback period [Hz]" | ||
}, | ||
"use_first_command": { | ||
"type": "boolean", | ||
"default": "true", | ||
"description": "Consider instrument id or not" | ||
}, | ||
"use_command_state": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "Consider command state or not" | ||
}, | ||
"instrument_id": { | ||
"type": "string", | ||
"default": "", | ||
"description": "Used as command id" | ||
}, | ||
"approval": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "set approval filed to ros param" | ||
}, | ||
"is_finalized": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "Stop at stop_line if finalization isn't completed" | ||
} | ||
}, | ||
"required": [ | ||
"update_rate_hz", | ||
"use_first_command", | ||
"use_command_state", | ||
"instrument_id", | ||
"approval", | ||
"is_finalized" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/dummy_infrastructure" | ||
} | ||
}, | ||
"required": ["ros__parameters"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["/**"], | ||
"additionalProperties": false | ||
} |
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