Skip to content

Commit

Permalink
feat(autoware_radar_tracks_noise_filter): Created Schema file and upd…
Browse files Browse the repository at this point in the history
…ated ReadME file for parameters setting (#9992)

* feat:  Created Schema file and updated ReadME file for parameters settings

Signed-off-by: vish0012 <[email protected]>

* Update radar_tracks_noise_filter.param.yaml

* style(pre-commit): autofix

* fix: updated launch  and schema for autoware_radar_tracks_noise_filter as per review comments

Signed-off-by: vish0012 <[email protected]>

* Update README.md

Updated README File

---------

Signed-off-by: vish0012 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
vish0012 and pre-commit-ci[bot] authored Feb 4, 2025
1 parent 0f2bf09 commit 9d965fb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
4 changes: 1 addition & 3 deletions sensing/autoware_radar_tracks_noise_filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ In y-axis threshold filter, if y-axis velocity of RadarTrack is more than `veloc

## Parameters

| Name | Type | Description | Default value |
| :--------------------- | :----- | :--------------------------------------------------------------------------------------------------------------------------------- | :------------ |
| `velocity_y_threshold` | double | Y-axis velocity threshold [m/s]. If y-axis velocity of RadarTrack is more than `velocity_y_threshold`, it treats as noise objects. | 7.0 |
{{ json_to_markdown("sensing/autoware_radar_tracks_noise_filter/schema/<radar_tracks_noise_filter.schema.json") }}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<arg name="param_path" default="$(find-pkg-share autoware_radar_tracks_noise_filter)/config/radar_tracks_noise_filter.param.yaml"/>

<node pkg="autoware_radar_tracks_noise_filter" exec="radar_tracks_noise_filter_node" name="radar_tracks_noise_filter" output="screen">
<remap from="~/input/tracks" to="$(var input/tracks)"/>
<remap from="~/output/noise_tracks" to="$(var output/noise_tracks)"/>
<remap from="~/output/filtered_tracks" to="$(var output/filtered_tracks)"/>
<param from="$(var param_path)"/>
<remap from="~/input/tracks" to="$(arg input/tracks)"/>
<remap from="~/output/noise_tracks" to="$(arg output/noise_tracks)"/>
<remap from="~/output/filtered_tracks" to="$(arg output/filtered_tracks)"/>
<param file="$(arg param_path)"/>
</node>
</launch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "autoware_radar_tracks_noise_filter parameters",
"type": "object",
"definitions": {
"autoware_radar_tracks_noise_filter": {
"type": "object",
"properties": {
"velocity_y_threshold": {
"type": "number",
"description": "If the y-axis velocity of a RadarTrack exceeds `velocity_y_threshold`, it is treated as a noise object.",
"default": 7.0
}
},
"required": ["velocity_y_threshold"],
"additionalProperties": false
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/autoware_radar_tracks_noise_filter"
}
},
"required": ["ros__parameters"],
"additionalProperties": false
}
},
"required": ["/**"],
"additionalProperties": false
}

0 comments on commit 9d965fb

Please sign in to comment.