-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(detection_by_tracker): rework parameters (#4989)
* refactor the configuration files of the node detection_by_tracker_node according to the new ROS node config guideline. update the parameter information in the README.md Signed-off-by: yuntianyi-chen <[email protected]> * style(pre-commit): autofix * revert copyright info Signed-off-by: yuntianyi-chen <[email protected]> * style(pre-commit): autofix * update config file Signed-off-by: yuntianyi-chen <[email protected]> --------- Signed-off-by: yuntianyi-chen <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Satoshi OTA <[email protected]>
- Loading branch information
1 parent
e68ddf2
commit 9444f0c
Showing
4 changed files
with
95 additions
and
10 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
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
17 changes: 8 additions & 9 deletions
17
perception/detection_by_tracker/config/detection_by_tracker.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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
/**: | ||
ros__parameters: | ||
tracker_ignore_label: | ||
UNKNOWN : true | ||
CAR : false | ||
TRUCK : false | ||
BUS : false | ||
TRAILER : false | ||
MOTORCYCLE : false | ||
BICYCLE : false | ||
PEDESTRIAN : false | ||
tracker_ignore_label.UNKNOWN : true | ||
tracker_ignore_label.CAR : false | ||
tracker_ignore_label.TRUCK : false | ||
tracker_ignore_label.BUS : false | ||
tracker_ignore_label.TRAILER : false | ||
tracker_ignore_label.MOTORCYCLE : false | ||
tracker_ignore_label.BICYCLE : false | ||
tracker_ignore_label.PEDESTRIAN : false |
74 changes: 74 additions & 0 deletions
74
perception/detection_by_tracker/schema/detection_by_tracker.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,74 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Detection By Tracker Node", | ||
"type": "object", | ||
"definitions": { | ||
"detection_by_tracker": { | ||
"type": "object", | ||
"properties": { | ||
"tracker_ignore_label.UNKNOWN": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "If true, the node will ignore the tracker if its label is unknown." | ||
}, | ||
"tracker_ignore_label.CAR": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is CAR." | ||
}, | ||
"tracker_ignore_label.PEDESTRIAN": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is pedestrian." | ||
}, | ||
"tracker_ignore_label.BICYCLE": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is bicycle." | ||
}, | ||
"tracker_ignore_label.MOTORCYCLE": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is motorcycle." | ||
}, | ||
"tracker_ignore_label.BUS": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is bus." | ||
}, | ||
"tracker_ignore_label.TRUCK": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is truck." | ||
}, | ||
"tracker_ignore_label.TRAILER": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, the node will ignore the tracker if its label is TRAILER." | ||
} | ||
}, | ||
"required": [ | ||
"tracker_ignore_label.UNKNOWN", | ||
"tracker_ignore_label.CAR", | ||
"tracker_ignore_label.PEDESTRIAN", | ||
"tracker_ignore_label.BICYCLE", | ||
"tracker_ignore_label.MOTORCYCLE", | ||
"tracker_ignore_label.BUS", | ||
"tracker_ignore_label.TRUCK", | ||
"tracker_ignore_label.TRAILER" | ||
] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/detection_by_tracker" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |