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 pickup based voxel…
… grid downsample filter parameters (autowarefoundation#8481) * feat: rework pickup based voxel grid downsample filter parameter Signed-off-by: vividf <[email protected]> * chore: update date Signed-off-by: vividf <[email protected]> * chore: fix spell error Signed-off-by: vividf <[email protected]> * chore: add boundary Signed-off-by: vividf <[email protected]> * chore: fix grammatical error Signed-off-by: vividf <[email protected]> --------- Signed-off-by: vividf <[email protected]> Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]>
- Loading branch information
Showing
7 changed files
with
77 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
5 changes: 5 additions & 0 deletions
5
..._pointcloud_preprocessor/config/pickup_based_voxel_grid_downsample_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,5 @@ | ||
/**: | ||
ros__parameters: | ||
voxel_size_x: 1.0 | ||
voxel_size_y: 1.0 | ||
voxel_size_z: 1.0 |
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
..._pointcloud_preprocessor/launch/pickup_based_voxel_grid_downsample_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="/sensing/lidar/top/pointcloud_raw"/> | ||
<arg name="output_topic_name" default="/sensing/lidar/top/pickup_based_voxel_grid_downsample_filter/pointcloud"/> | ||
<arg name="input_frame" default=""/> | ||
<arg name="output_frame" default=""/> | ||
<arg name="pickup_based_voxel_grid_downsample_filter_param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/pickup_based_voxel_grid_downsample_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="pickup_based_voxel_grid_downsample_filter_node" name="pickup_based_voxel_grid_downsample_filter_node"> | ||
<param from="$(var pickup_based_voxel_grid_downsample_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> |
46 changes: 46 additions & 0 deletions
46
...pointcloud_preprocessor/schema/pickup_based_voxel_grid_downsample_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,46 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Pickup Based Voxel Grid Downsample Filter Node", | ||
"type": "object", | ||
"definitions": { | ||
"pickup_based_voxel_grid_downsample_filter": { | ||
"type": "object", | ||
"properties": { | ||
"voxel_size_x": { | ||
"type": "number", | ||
"description": "voxel size along the x-axis [m]", | ||
"default": "1.0", | ||
"minimum": 0 | ||
}, | ||
"voxel_size_y": { | ||
"type": "number", | ||
"description": "voxel size along the y-axis [m]", | ||
"default": "1.0", | ||
"minimum": 0 | ||
}, | ||
"voxel_size_z": { | ||
"type": "number", | ||
"description": "voxel size along the z-axis [m]", | ||
"default": "1.0", | ||
"minimum": 0 | ||
} | ||
}, | ||
"required": ["voxel_size_x", "voxel_size_y", "voxel_size_z"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/pickup_based_voxel_grid_downsample_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