Skip to content
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

Feature/publisher with customizable randomizer #1503

Merged
merged 29 commits into from
Feb 14, 2025

Conversation

yamacir-kit
Copy link
Collaborator

@yamacir-kit yamacir-kit commented Jan 8, 2025

Description

Abstract

This pull request adds the ability to randomize the value of any field in messages published by the concealer publisher.

Additionally, a launch argument parameter_file_path has been added to scenario_test_runner that accepts the path to the ROS 2 parameter file to specify the parameters to be given to the randomizer.

Background

Previously, scenario_simulator_v2 could randomize some of the perception-related messages it published to Autoware (which is the responsibility of simple_sensor_simulator), but not the localization-related ones (which is the responsibility of concealer).

Recently, the Autoware development team requested the ability to randomize odometry out of localization, so we have implemented this and added a comprehensive parameter file to specify the parameters to be given to such a functionality.

Details

In this pull request, the randomizer is only enabled for those related to odometry.

The Localization topic randomizer can be configured from the ROS 2 parameter file given to the launch argument parameter_file_path of scenario_test_runner. The default value of parameter_file_path is the path to the sample parameter file.

The parameter file was designed with the intention that in the future it will comprehensively handle the parameters given to the simple_sensor_simulator and the concealer handling publishers and subscribers. This includes parameters related to perception, which are currently specified by Properties in the OpenSCENARIO XML scenario file. Therefore, the parameter file includes information such as architecture_type values, message type names, topic type names, and other information that may be needed in the future (some of which is not used in this pull request).

References

None.

Destructive Changes

None.

Known Limitations

None.

Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
…ry>`

Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
@yamacir-kit yamacir-kit added feature New feature or request bump minor If this pull request merged, bump minor version of the scenario_simulator_v2 labels Jan 8, 2025
@yamacir-kit yamacir-kit self-assigned this Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

Checklist for reviewers ☑️

All references to "You" in the following text refer to the code reviewer.

  • Is this pull request written in a way that is easy to read from a third-party perspective?
  • Is there sufficient information (background, purpose, specification, algorithm description, list of disruptive changes, and migration guide) in the description of this pull request?
  • If this pull request contains a destructive change, does this pull request contain the migration guide?
  • Labels of this pull request are valid?
  • All unit tests/integration tests are included in this pull request? If you think adding test cases is unnecessary, please describe why and cross out this line.
  • The documentation for this pull request is enough? If you think adding documents for this pull request is unnecessary, please describe why and cross out this line.

Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Copy link

@xtk8532704 xtk8532704 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@yamacir-kit yamacir-kit requested a review from HansRobo February 12, 2025 00:58
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
@yamacir-kit yamacir-kit marked this pull request as ready for review February 13, 2025 01:50
@yamacir-kit yamacir-kit merged commit 5caea27 into master Feb 14, 2025
13 checks passed
@github-actions github-actions bot deleted the feature/publisher-with-customizable-randomizer branch February 14, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor If this pull request merged, bump minor version of the scenario_simulator_v2 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants