Skip to content

Commit 9d965fb

Browse files
vish0012pre-commit-ci[bot]
andauthoredFeb 4, 2025
feat(autoware_radar_tracks_noise_filter): Created Schema file and updated ReadME file for parameters setting (autowarefoundation#9992)
* feat: Created Schema file and updated ReadME file for parameters settings Signed-off-by: vish0012 <vishalchhn42@gmail.com> * 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 <vishalchhn42@gmail.com> * Update README.md Updated README File --------- Signed-off-by: vish0012 <vishalchhn42@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0f2bf09 commit 9d965fb

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed
 

‎sensing/autoware_radar_tracks_noise_filter/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@ In y-axis threshold filter, if y-axis velocity of RadarTrack is more than `veloc
2929

3030
## Parameters
3131

32-
| Name | Type | Description | Default value |
33-
| :--------------------- | :----- | :--------------------------------------------------------------------------------------------------------------------------------- | :------------ |
34-
| `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 |
32+
{{ json_to_markdown("sensing/autoware_radar_tracks_noise_filter/schema/<radar_tracks_noise_filter.schema.json") }}

‎sensing/autoware_radar_tracks_noise_filter/launch/radar_tracks_noise_filter.launch.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<arg name="param_path" default="$(find-pkg-share autoware_radar_tracks_noise_filter)/config/radar_tracks_noise_filter.param.yaml"/>
66

77
<node pkg="autoware_radar_tracks_noise_filter" exec="radar_tracks_noise_filter_node" name="radar_tracks_noise_filter" output="screen">
8-
<remap from="~/input/tracks" to="$(var input/tracks)"/>
9-
<remap from="~/output/noise_tracks" to="$(var output/noise_tracks)"/>
10-
<remap from="~/output/filtered_tracks" to="$(var output/filtered_tracks)"/>
11-
<param from="$(var param_path)"/>
8+
<remap from="~/input/tracks" to="$(arg input/tracks)"/>
9+
<remap from="~/output/noise_tracks" to="$(arg output/noise_tracks)"/>
10+
<remap from="~/output/filtered_tracks" to="$(arg output/filtered_tracks)"/>
11+
<param file="$(arg param_path)"/>
1212
</node>
1313
</launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "autoware_radar_tracks_noise_filter parameters",
4+
"type": "object",
5+
"definitions": {
6+
"autoware_radar_tracks_noise_filter": {
7+
"type": "object",
8+
"properties": {
9+
"velocity_y_threshold": {
10+
"type": "number",
11+
"description": "If the y-axis velocity of a RadarTrack exceeds `velocity_y_threshold`, it is treated as a noise object.",
12+
"default": 7.0
13+
}
14+
},
15+
"required": ["velocity_y_threshold"],
16+
"additionalProperties": false
17+
}
18+
},
19+
"properties": {
20+
"/**": {
21+
"type": "object",
22+
"properties": {
23+
"ros__parameters": {
24+
"$ref": "#/definitions/autoware_radar_tracks_noise_filter"
25+
}
26+
},
27+
"required": ["ros__parameters"],
28+
"additionalProperties": false
29+
}
30+
},
31+
"required": ["/**"],
32+
"additionalProperties": false
33+
}

0 commit comments

Comments
 (0)
Please sign in to comment.