forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(autoware_pointcloud_preprocessor): rework lanelet2 map filte…
…r parameters (autowarefoundation#8491) * feat: rework lanelet2 map filter parameters Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: remove unrelated files Signed-off-by: vividf <yihsiang.fang@tier4.jp> * fix: fix node name in launch Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: fix launcher Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: fix spell error Signed-off-by: vividf <yihsiang.fang@tier4.jp> * chore: add boundary Signed-off-by: vividf <yihsiang.fang@tier4.jp> --------- Signed-off-by: vividf <yihsiang.fang@tier4.jp>
- Loading branch information
Showing
7 changed files
with
66 additions
and
13 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
4 changes: 4 additions & 0 deletions
4
sensing/autoware_pointcloud_preprocessor/config/lanelet2_map_filter_node.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/**: | ||
ros__parameters: | ||
voxel_size_x: 0.04 | ||
voxel_size_y: 0.04 |
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
12 changes: 12 additions & 0 deletions
12
sensing/autoware_pointcloud_preprocessor/launch/lanelet2_map_filter_node.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<launch> | ||
<arg name="input_vector_map" default="/map/vector_map"/> | ||
<arg name="input_pointcloud" default="detection_area/pointcloud"/> | ||
<arg name="output_pointcloud" default="vector_map_filtered/pointcloud"/> | ||
<arg name="lanelet2_map_filter_param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/lanelet2_map_filter_node.param.yaml"/> | ||
<node pkg="autoware_pointcloud_preprocessor" exec="vector_map_filter_node" name="vector_map_filter_node"> | ||
<param from="$(var lanelet2_map_filter_param_file)"/> | ||
<remap from="input/vector_map" to="$(var input_vector_map)"/> | ||
<remap from="input/pointcloud" to="$(var input_pointcloud)"/> | ||
<remap from="output" to="$(var output_pointcloud)"/> | ||
</node> | ||
</launch> |
40 changes: 40 additions & 0 deletions
40
sensing/autoware_pointcloud_preprocessor/schema/lanelet2_map_filter_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,40 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Lanelet2 Map Filter Node", | ||
"type": "object", | ||
"definitions": { | ||
"lanelet2_map_filter": { | ||
"type": "object", | ||
"properties": { | ||
"voxel_size_x": { | ||
"type": "number", | ||
"description": "voxel size along x-axis [m]", | ||
"default": "0.04", | ||
"minimum": 0 | ||
}, | ||
"voxel_size_y": { | ||
"type": "number", | ||
"description": "voxel size along y-axis [m]", | ||
"default": "0.04", | ||
"minimum": 0 | ||
} | ||
}, | ||
"required": ["voxel_size_x", "voxel_size_y"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/lanelet2_map_filter" | ||
} | ||
}, | ||
"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