-
Notifications
You must be signed in to change notification settings - Fork 649
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 voxel grid outlier…
… filter parameters (#8476) * feat: rework voxel grid outlier filter parameters Signed-off-by: vividf <[email protected]> * chore: add boundary Signed-off-by: vividf <[email protected]> --------- Signed-off-by: vividf <[email protected]>
- Loading branch information
Showing
7 changed files
with
86 additions
and
17 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
6 changes: 6 additions & 0 deletions
6
sensing/autoware_pointcloud_preprocessor/config/voxel_grid_outlier_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,6 @@ | ||
/**: | ||
ros__parameters: | ||
voxel_size_x: 0.3 | ||
voxel_size_y: 0.3 | ||
voxel_size_z: 0.1 | ||
voxel_points_threshold: 2 |
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
16 changes: 16 additions & 0 deletions
16
sensing/autoware_pointcloud_preprocessor/launch/voxel_grid_outlier_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,16 @@ | ||
<launch> | ||
<arg name="input_topic_name" default="/pointcloud_raw"/> | ||
<arg name="output_topic_name" default="/pointcloud_filtered"/> | ||
<arg name="input_frame" default=""/> | ||
<arg name="output_frame" default=""/> | ||
<arg name="voxel_grid_outlier_filter_param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/voxel_grid_outlier_filter_node.param.yaml"/> | ||
<arg name="filter_param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/filter.param.yaml"/> | ||
<node pkg="autoware_pointcloud_preprocessor" exec="voxel_grid_outlier_filter_node" name="voxel_grid_outlier_filter_node"> | ||
<param from="$(var voxel_grid_outlier_filter_param_file)"/> | ||
<param from="$(var filter_param_file)"/> | ||
<remap from="input" to="$(var input_topic_name)"/> | ||
<remap from="output" to="$(var output_topic_name)"/> | ||
<param name="input_frame" value="$(var input_frame)"/> | ||
<param name="output_frame" value="$(var output_frame)"/> | ||
</node> | ||
</launch> |
52 changes: 52 additions & 0 deletions
52
sensing/autoware_pointcloud_preprocessor/schema/voxel_grid_outlier_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,52 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Voxel Grid Outlier Filter Node", | ||
"type": "object", | ||
"definitions": { | ||
"voxel_grid_outlier_filter": { | ||
"type": "object", | ||
"properties": { | ||
"voxel_size_x": { | ||
"type": "number", | ||
"description": "the voxel size along x-axis [m]", | ||
"default": "0.3", | ||
"minimum": 0 | ||
}, | ||
"voxel_size_y": { | ||
"type": "number", | ||
"description": "the voxel size along y-axis [m]", | ||
"default": "0.3", | ||
"minimum": 0 | ||
}, | ||
"voxel_size_z": { | ||
"type": "number", | ||
"description": "the voxel size along z-axis [m]", | ||
"default": "0.1", | ||
"minimum": 0 | ||
}, | ||
"voxel_points_threshold": { | ||
"type": "integer", | ||
"description": "the minimum number of points in each voxel", | ||
"default": "2", | ||
"minimum": 1 | ||
} | ||
}, | ||
"required": ["voxel_size_x", "voxel_size_y", "voxel_size_z", "voxel_points_threshold"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/voxel_grid_outlier_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