-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(map_loader): rework parameters of map_loader (#6199)
* Rework parameters of map_loader Signed-off-by: anhnv3991 <[email protected]> * style(pre-commit): autofix * Fixed typo in name of map_based_pediction.schema.json, which cause json-schema-check failed Signed-off-by: anhnv3991 <[email protected]> * Move path variables back to launch files Signed-off-by: anhnv3991 <[email protected]> * Update README.md Signed-off-by: anhnv3991 <[email protected]> * Undo the change in perception Signed-off-by: anhnv3991 <[email protected]> * Remove default values of declare_parameter from map_loader Signed-off-by: anhnv3991 <[email protected]> --------- Signed-off-by: anhnv3991 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3a10282
commit 9df0ff9
Showing
10 changed files
with
121 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/**: | ||
ros__parameters: | ||
center_line_resolution: 5.0 # [m] | ||
lanelet2_map_path: $(var lanelet2_map_path) # The lanelet2 map path |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for lanelet2 map loader Node", | ||
"type": "object", | ||
"definitions": { | ||
"lanelet2_map_loader": { | ||
"type": "object", | ||
"properties": { | ||
"center_line_resolution": { | ||
"type": "number", | ||
"description": "Resolution of the Lanelet center line [m]", | ||
"default": "5.0" | ||
}, | ||
"lanelet2_map_path": { | ||
"type": "string", | ||
"description": "The lanelet2 map path pointing to the .osm file", | ||
"default": "" | ||
} | ||
}, | ||
"required": ["center_line_resolution", "lanelet2_map_path"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/lanelet2_map_loader" | ||
} | ||
}, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for point cloud map loader Node", | ||
"type": "object", | ||
"definitions": { | ||
"pointcloud_map_loader": { | ||
"type": "object", | ||
"properties": { | ||
"enable_whole_load": { | ||
"type": "boolean", | ||
"description": "Enable raw pointcloud map publishing", | ||
"default": true | ||
}, | ||
"enable_downsampled_whole_load": { | ||
"type": "boolean", | ||
"description": "Enable downsampled pointcloud map publishing", | ||
"default": false | ||
}, | ||
"enable_partial_load": { | ||
"type": "boolean", | ||
"description": "Enable partial pointcloud map server", | ||
"default": true | ||
}, | ||
"enable_selected_load": { | ||
"type": "boolean", | ||
"description": "Enable selected pointcloud map server", | ||
"default": false | ||
}, | ||
"leaf_size": { | ||
"type": "number", | ||
"description": "Downsampling leaf size (only used when enable_downsampled_whole_load is set true)", | ||
"default": 3.0 | ||
}, | ||
"pcd_paths_or_directory": { | ||
"type": "array", | ||
"description": "Path(s) to pointcloud map file or directory", | ||
"default": [] | ||
}, | ||
"pcd_metadata_path": { | ||
"type": "string", | ||
"description": "Path to pointcloud metadata file", | ||
"default": "" | ||
} | ||
}, | ||
"required": [ | ||
"enable_whole_load", | ||
"enable_downsampled_whole_load", | ||
"enable_partial_load", | ||
"enable_selected_load", | ||
"leaf_size", | ||
"pcd_paths_or_directory", | ||
"pcd_metadata_path" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/pointcloud_map_loader" | ||
} | ||
}, | ||
"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
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