-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(radar_tracks_msgs_converter): rework parameters #6533
Merged
mitsudome-r
merged 5 commits into
autowarefoundation:main
from
kaspermeck-arm:refactor-node-config-radar_tracks_msgs_converter
Mar 7, 2024
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5d2ac41
refactor(radar_tracks_msgs_converter)
kaspermeck-arm 8203640
fix: restore parameter description and make json schema description s…
mitsudome-r c53b81f
Merge pull request #1 from mitsudome-r/fix/radar_tracks_msgs_converter
kaspermeck-arm dc26b46
style(pre-commit): autofix
pre-commit-ci[bot] 78671ea
Updated param file path
kaspermeck-arm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
<arg name="input/odometry" default="/localization/kinematic_state"/> | ||
<arg name="output/radar_detected_objects" default="output/radar_detected_objects"/> | ||
<arg name="output/radar_tracked_objects" default="output/radar_tracked_objects"/> | ||
<arg name="param_path" default="$(find-pkg-share radar_tracks_msgs_converter)/config/radar_tracks_msgs_converter.param.yaml"/> | ||
<arg name="config_file" default="$(find-pkg-share radar_tracks_msgs_converter)/config/radar_tracks_msgs_converter.param.yaml"/> | ||
|
||
<node pkg="radar_tracks_msgs_converter" exec="radar_tracks_msgs_converter_node" name="radar_tracks_msgs_converter" output="screen"> | ||
<remap from="~/input/radar_objects" to="$(var input/radar_objects)"/> | ||
<remap from="~/input/odometry" to="$(var input/odometry)"/> | ||
<remap from="~/output/radar_detected_objects" to="$(var output/radar_detected_objects)"/> | ||
<remap from="~/output/radar_tracked_objects" to="$(var output/radar_tracked_objects)"/> | ||
<param from="$(var param_path)"/> | ||
<param from="$(var config_file)"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [MUST] |
||
</node> | ||
</launch> |
57 changes: 57 additions & 0 deletions
57
perception/radar_tracks_msgs_converter/schema/radar_tracks_msgs_converter.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,57 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Radar Tracks Msgs Converter node", | ||
"type": "object", | ||
"definitions": { | ||
"radar_tracks_msgs_converter": { | ||
"type": "object", | ||
"properties": { | ||
"update_rate_hz": { | ||
"type": "number", | ||
"description": "The update rate [hz] of the output topic", | ||
"default": "20.0", | ||
"minimum": 0.0 | ||
}, | ||
"new_frame_id": { | ||
"type": "string", | ||
"description": "The header frame_id of the output topic", | ||
"default": "base_link" | ||
}, | ||
"use_twist_compensation": { | ||
"type": "boolean", | ||
"description": "Flag to enable the linear compensation of ego vehicle's twist", | ||
"default": "false" | ||
}, | ||
"use_twist_yaw_compensation": { | ||
"type": "boolean", | ||
"description": "Flag to enable the compensation of yaw rotation of ego vehicle's twist", | ||
"default": "false" | ||
}, | ||
"static_object_speed_threshold": { | ||
"type": "number", | ||
"description": "Threshold to treat detected objects as static objects", | ||
"default": "1.0" | ||
} | ||
}, | ||
"required": [ | ||
"update_rate_hz", | ||
"new_frame_id", | ||
"use_twist_compensation", | ||
"use_twist_yaw_compensation", | ||
"static_object_speed_threshold" | ||
] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/radar_tracks_msgs_converter" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MUST]
This unnecessary interface changes affect many Autoware projects.
Please revert this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaspermeck-arm
Could you provide the reasons for this modification?
Like @scepter914 says, this would affect users who include this radar_tracks_msgs_converter.launch.xml to their own project.
Since we don't want to disturb developers, let's keep this as and focus on node configuration, not launch configuration for now. If we need to unify the launch arguments as well, I think we should discuss this under #3386 first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mitsudome-r
To align with the original PR
and because in
it wasn't addressed.
I'll update the launch file and we can discuss naming convention when we start the ROS Launch dojo.