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 ring passthrough f…
…ilter parameters (autowarefoundation#8472) * feat: rework ring passthrough parameters Signed-off-by: vividf <[email protected]> * chore: fix cmake Signed-off-by: vividf <[email protected]> * feat: add schema Signed-off-by: vividf <[email protected]> * chore: fix readme Signed-off-by: vividf <[email protected]> * chore: fix parameter file name Signed-off-by: vividf <[email protected]> * chore: add boundary Signed-off-by: vividf <[email protected]> * chore: fix default parameter Signed-off-by: vividf <[email protected]> * chore: fix default parameter in schema Signed-off-by: vividf <[email protected]> --------- Signed-off-by: vividf <[email protected]>
- Loading branch information
Showing
9 changed files
with
94 additions
and
41 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
7 changes: 7 additions & 0 deletions
7
sensing/autoware_pointcloud_preprocessor/config/passthrough_filter_uint16_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,7 @@ | ||
/**: | ||
ros__parameters: | ||
filter_limit_min: 0 | ||
filter_limit_max: 127 | ||
filter_field_name: "channel" | ||
keep_organized: false | ||
filter_limit_negative: 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
18 changes: 5 additions & 13 deletions
18
sensing/autoware_pointcloud_preprocessor/launch/ring_passthrough_filter.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
61 changes: 61 additions & 0 deletions
61
sensing/autoware_pointcloud_preprocessor/schema/passthrough_filter_uint16_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,61 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Passthrough Filter UInt16 Node", | ||
"type": "object", | ||
"definitions": { | ||
"passthrough_filter_uint16": { | ||
"type": "object", | ||
"properties": { | ||
"filter_limit_min": { | ||
"type": "integer", | ||
"description": "minimum allowed field value", | ||
"default": "0", | ||
"minimum": 0 | ||
}, | ||
"filter_limit_max": { | ||
"type": "integer", | ||
"description": "maximum allowed field value", | ||
"default": "127", | ||
"minimum": 0 | ||
}, | ||
"filter_field_name": { | ||
"type": "string", | ||
"description": "filtering field name", | ||
"default": "channel" | ||
}, | ||
"keep_organized": { | ||
"type": "boolean", | ||
"description": "flag to keep indices structure", | ||
"default": "false" | ||
}, | ||
"filter_limit_negative": { | ||
"type": "boolean", | ||
"description": "flag to return whether the data is inside limit or not", | ||
"default": "false" | ||
} | ||
}, | ||
"required": [ | ||
"filter_limit_min", | ||
"filter_limit_max", | ||
"filter_field_name", | ||
"keep_organized", | ||
"filter_limit_negative" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/passthrough_filter_uint16" | ||
} | ||
}, | ||
"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