-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added map_projection_loader.schema.json.
Modified README.md of map_projection_loader to read the schema.json file to construct the table of parameters Signed-off-by: TaikiYamada4 <[email protected]>
- Loading branch information
1 parent
9481df9
commit 3d754f2
Showing
2 changed files
with
46 additions
and
5 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
42 changes: 42 additions & 0 deletions
42
map/map_projection_loader/schema/map_projection_loader.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,42 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for map_projection_loader", | ||
"type": "object", | ||
"definitions": { | ||
"map_projection_loader": { | ||
"type": "object", | ||
"properties": { | ||
"map_projector_info_path": { | ||
"type": "string", | ||
"description": "The path where map_projector_info.yaml is located", | ||
"default": "$(var map_projector_info_path)" | ||
}, | ||
"lanelet2_map_path": { | ||
"type": "string", | ||
"description": "The path where the lanelet2 map file (.osm) is located", | ||
"default": "$(var lanelet2_map_path)" | ||
} | ||
}, | ||
"required": [ | ||
"map_projector_info_path", | ||
"lanelet2_map_path" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/map_projection_loader" | ||
} | ||
}, | ||
"required": ["ros__parameters"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["/**"], | ||
"additionalProperties": false | ||
} | ||
|