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.
feat(autoware_traffic_light_fine_detector): created the schema file,u…
…pdated the readme file and deleted the default parameter in node files code (autowarefoundation#10106) * feat(autoware_traffic_light_fine_detector): Created the schema file, updated the readme file and deleted the default parameter in node files code Signed-off-by: vish0012 <vishalchhn42@gmail.com> * style(pre-commit): autofix * fix declare_parameter Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> * chore Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> * change launch file Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> * change type Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> * style(pre-commit): autofix * fix definition name Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> * run build Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> --------- Signed-off-by: vish0012 <vishalchhn42@gmail.com> Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: MasatoSaeki <masato.saeki@tier4.jp>
- Loading branch information
1 parent
3274695
commit 5e36840
Showing
4 changed files
with
85 additions
and
25 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
71 changes: 71 additions & 0 deletions
71
...ption/autoware_traffic_light_fine_detector/schema/traffic_light_fine_detector.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,71 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "autoware_traffic_light_fine_detector parameter", | ||
"type": "object", | ||
"definitions": { | ||
"traffic_light_fine_detector": { | ||
"type": "object", | ||
"properties": { | ||
"fine_detector_label_path": { | ||
"type": "string", | ||
"description": "The label file with label names for detected objects written on it.", | ||
"default": "$(var traffic_light_fine_detector_model_path)/$(var traffic_light_fine_detector_label_name)" | ||
}, | ||
"fine_detector_model_path": { | ||
"type": "string", | ||
"description": "The ONNX file name for the YOLO model.", | ||
"default": "$(var traffic_light_fine_detector_model_path)/$(var traffic_light_fine_detector_model_name).onnx" | ||
}, | ||
"fine_detector_precision": { | ||
"type": "string", | ||
"description": "Precision used for traffic light fine detector inference. Valid values: [fp32, fp16].", | ||
"default": "fp16" | ||
}, | ||
"fine_detector_score_thresh": { | ||
"type": "number", | ||
"description": "If the objectness score is less than this value, the object is ignored.", | ||
"default": 0.3 | ||
}, | ||
"fine_detector_nms_thresh": { | ||
"type": "number", | ||
"description": "IoU threshold to perform Non-Maximum Suppression (NMS).", | ||
"default": 0.65 | ||
}, | ||
"approximate_sync": { | ||
"type": "boolean", | ||
"description": "Flag for whether to use approximate sync policy.", | ||
"default": false | ||
}, | ||
"gpu_id": { | ||
"type": "integer", | ||
"description": "ID for selecting the CUDA GPU device.", | ||
"default": 0 | ||
} | ||
}, | ||
"required": [ | ||
"fine_detector_label_path", | ||
"fine_detector_model_path", | ||
"fine_detector_precision", | ||
"fine_detector_score_thresh", | ||
"fine_detector_nms_thresh", | ||
"approximate_sync", | ||
"gpu_id" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/traffic_light_fine_detector" | ||
} | ||
}, | ||
"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