Skip to content

Specify allow_goal_modification option to goal via AcquirePositionAction.allow_goal_modification parameter #1590

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

Merged
merged 30 commits into from
May 22, 2025

Conversation

HansRobo
Copy link
Member

@HansRobo HansRobo commented May 9, 2025

Description

Abstract

Specify allow_goal_modification option to goal via AcquirePositionAction.allow_goal_modification parameter

Background

Currently, we can specify allow_goal_modification option for autoware goal by using allowGoalModification property in ObjectController , but can not change the option goal by goal.

Details

Scenario specifications and actual output

If both allowGoalModification property (lagacy way) and AcquirePositionAction.allow_goal_modification parameter (new way) are specified, the property takes precedence.
If both are not defined, specify false as default.

property parameter result
undefined undefined false
undefined true true
undefined false false
true undefined/true/false true
false undefined/true/false false

Note

If multiple parameters with different scopes are declared, the value of the one with the narrower scope takes precedence.

test scenario behavior

  1. scenario set first goal with allow_goal_modification
  2. scenario locate car_1 to first goal
  3. Autoware modifies the first goal
  4. Autoware reaches the modified goal
  5. scenario set the second goal without allow_goal_modification
  6. scenario locate car_1 to second goal
  7. (Autoware goes without modifying the second goal)
  8. scenario locate car_1 out of second goal
  9. Autoware reaches second goal

References

Destructive Changes

None

Known Limitations

To specify allow_goal_modification of AcquirePositionAction in Init Actions, you should declare global AcquirePositionAction.allow_goal_modification parameter.

Copy link

github-actions bot commented May 9, 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.

@HansRobo HansRobo added wait for regression test bump minor If this pull request merged, bump minor version of the scenario_simulator_v2 labels May 12, 2025
@HansRobo HansRobo changed the title Add allow_goal_modification argument to FieldOperatorApplication::plan Specify allow_goal_modification option to goal via AcquirePositionAction.allow_goal_modification parameter May 12, 2025
@HansRobo HansRobo requested a review from yamacir-kit May 13, 2025 01:15
@HansRobo HansRobo marked this pull request as ready for review May 13, 2025 01:15
@HansRobo HansRobo self-assigned this May 14, 2025
Copy link

@HansRobo HansRobo merged commit 2370e98 into master May 22, 2025
14 checks passed
@github-actions github-actions bot deleted the feature/change_allow_goal_modification branch May 22, 2025 09:10
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants