Skip to content

Commit

Permalink
feat: add schema file for radar_threshold_filter and upadted the READ…
Browse files Browse the repository at this point in the history
…ME file

Signed-off-by: vish0012 <[email protected]>
  • Loading branch information
vish0012 committed Jan 20, 2025
1 parent b107ac7 commit d90304a
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 16 deletions.
17 changes: 1 addition & 16 deletions sensing/autoware_radar_threshold_filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,7 @@ Calculation cost is O(n). `n` is the number of radar return.

### Parameters

- For node parameter

| Name | Type | Description |
| ------------------- | ------ | ----------------------------------------------------------------------------------------------------- |
| is_amplitude_filter | bool | if this parameter is true, apply amplitude filter (publish amplitude_min < amplitude < amplitude_max) |
| amplitude_min | double | [dBm^2] |
| amplitude_max | double | [dBm^2] |
| is_range_filter | bool | if this parameter is true, apply range filter (publish range_min < range < range_max) |
| range_min | double | [m] |
| range_max | double | [m] |
| is_azimuth_filter | bool | if this parameter is true, apply angle filter (publish azimuth_min < range < azimuth_max) |
| azimuth_min | double | [rad] |
| azimuth_max | double | [rad] |
| is_z_filter | bool | if this parameter is true, apply z position filter (publish z_min < z < z_max) |
| z_min | double | [m] |
| z_max | double | [m] |
{{ json_to_markdown("/sensing/autoware_radar_threshold_filter/schema/radar_threshold_filter.schema.json") }} |

### How to launch

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "radar_threshold_filter parameters",
"type": "object",
"definitions": {
"radar_threshold_filter": {
"type": "object",
"properties": {
"is_amplitude_filter": {
"type": "boolean",
"description": "if this parameter is true, apply amplitude filter (publish amplitude_min < amplitude < amplitude_max)",
"default": true
},
"amplitude_min": {
"type": "number",
"description": "[dBm^2]",
"default": -10.0
},
"amplitude_max": {
"type": "number",
"description": "[dBm^2]",
"default": 100.0
},
"is_range_filter": {
"type": "boolean",
"description": "if this parameter is true, apply range filter (publish range_min < range < range_max) ",
"default": false
},
"range_min": {
"type": "number",
"description": "[m] ",
"default": 20.0
},
"range_max": {
"type": "number",
"description": "[m]",
"default": 300.0
},
"is_azimuth_filter": {
"type": "boolean",
"description": "if this parameter is true, apply angle filter (publish azimuth_min < range < azimuth_max) ",
"default": true
},
"azimuth_min": {
"type": "number",
"description": "[rad]",
"default": -1.2
},
"azimuth_max": {
"type": "number",
"description": "[rad]",
"default": 1.2
},
"is_z_filter": {
"type": "boolean",
"description": "if this parameter is true, apply z position filter (publish z_min < z < z_max) ",
"default": false
},
"z_min": {
"type": "number",
"description": "[m]",
"default": -2.0
},
"z_max": {
"type": "number",
"description": "[m]",
"default": 5.0
}
},
"required": [
"is_amplitude_filter",
"amplitude_min",
"amplitude_max",
"is_range_filter",
"range_min",
"range_max",
"is_azimuth_filter",
"azimuth_min",
"azimuth_max",
"is_z_filter",
"z_min",
"z_max"
],
"additionalProperties": false
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/radar_object_clustering"
}
},
"required": ["ros__parameters"],
"additionalProperties": false
}
},
"required": ["/**"],
"additionalProperties": false
}

0 comments on commit d90304a

Please sign in to comment.