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 pointcloud accumul…
…ator parameters (autowarefoundation#8487) * feat: rework pointcloud accumulator parameters Signed-off-by: vividf <[email protected]> * chore: add explicit cast Signed-off-by: vividf <[email protected]> * chore: add boundary Signed-off-by: vividf <[email protected]> --------- Signed-off-by: vividf <[email protected]> Signed-off-by: Batuhan Beytekin <[email protected]>
- Loading branch information
1 parent
6860be8
commit ae2ee04
Showing
7 changed files
with
70 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/pointcloud_accumulator_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: | ||
accumulation_time_sec: 2.0 | ||
pointcloud_buffer_size: 50 |
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/pointcloud_accumulator_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"/> | ||
<arg name="output_topic_name" default="/sensing/lidar/top/pointcloud_accumulated"/> | ||
<arg name="input_frame" default="base_link"/> | ||
<arg name="output_frame" default="base_link"/> | ||
<arg name="pointcloud_accumulator_param_file" default="$(find-pkg-share autoware_pointcloud_preprocessor)/config/pointcloud_accumulator_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="pointcloud_accumulator_node" name="pointcloud_accumulator_node"> | ||
<param from="$(var pointcloud_accumulator_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> |
40 changes: 40 additions & 0 deletions
40
sensing/autoware_pointcloud_preprocessor/schema/pointcloud_accumulator_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 Pointcloud Accumulator Node", | ||
"type": "object", | ||
"definitions": { | ||
"pointcloud_accumulator": { | ||
"type": "object", | ||
"properties": { | ||
"accumulation_time_sec": { | ||
"type": "number", | ||
"description": "accumulation period [s]", | ||
"default": "2.0", | ||
"minimum": 0 | ||
}, | ||
"pointcloud_buffer_size": { | ||
"type": "integer", | ||
"description": "buffer size", | ||
"default": "50", | ||
"minimum": 0 | ||
} | ||
}, | ||
"required": ["accumulation_time_sec", "pointcloud_buffer_size"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/pointcloud_accumulator" | ||
} | ||
}, | ||
"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