-
Notifications
You must be signed in to change notification settings - Fork 60
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/set behavior parameter in object controller #1201
Merged
yamacir-kit
merged 16 commits into
master
from
feature/set_behavior_parameter_in_object_controller
Mar 25, 2024
Merged
Feature/set behavior parameter in object controller #1201
yamacir-kit
merged 16 commits into
master
from
feature/set_behavior_parameter_in_object_controller
Mar 25, 2024
Conversation
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
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Checklist for reviewers ☑️All references to "You" in the following text refer to the code reviewer.
|
hakuturu583
added
the
bump minor
If this pull request merged, bump minor version of the scenario_simulator_v2
label
Feb 28, 2024
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
…viorTree::setBehaviorParameter() Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
… into feature/set_behavior_parameter_in_object_controller
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
hakuturu583
added
bump major
If this pull request merged, bump major version of the scenario_simulator_v2
and removed
bump minor
If this pull request merged, bump minor version of the scenario_simulator_v2
labels
Mar 4, 2024
Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
hakuturu583
added
bump minor
If this pull request merged, bump minor version of the scenario_simulator_v2
and removed
bump major
If this pull request merged, bump major version of the scenario_simulator_v2
labels
Mar 5, 2024
yamacir-kit
approved these changes
Mar 25, 2024
yamacir-kit
deleted the
feature/set_behavior_parameter_in_object_controller
branch
March 25, 2024 07:06
github-actions
bot
restored the
feature/set_behavior_parameter_in_object_controller
branch
March 25, 2024 07:07
github-actions
bot
deleted the
feature/set_behavior_parameter_in_object_controller
branch
March 25, 2024 07:08
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
wait for regression test
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.
Description
Abstract
Background
About ObjectController in OpenSCENARIO.
Currently, it is not possible to specify in ObjectController the maximum speed, maximum acceleration, etc. of the vehicle to be used by the vehicle control algorithm.
Therefore, the only way to specify these parameters is to use SpeedProfileAction, which specifies the target speed at the same time.
This Pull Request improves this situation and allows the parameters to be set in the ObjectController.
About velocity limit
When the maximum speed of Entity was set using API::setVelocityLimit function and OpenSCENARIO's AssingControllerAction or ObjectController., it was doing "nothing", so the maximum speed was not set.
After this Pull-Request merged, the maximum speed is set.
Details
The reason I want to write limitations in ObjectController this time is because I want to specify the acceleration limit of driver behaviors that will continue to be applied as long as Entity exists in the simulation.
I searched this xsd for "Acceleration" and found that the only two types of acceleration that can be specified for an Entity are DynamicConstraints and Performance.
Among these, "Performance" specifies the "maximum acceleration that the vehicle Entity can physically achieve," so it does not match the purpose of this search.
The remaining "DynamicConstraints" can be used for LateralDistanceAction, LongitudinalDistanceAction, and SpeedProfileAction.
LateralDistanceAction
See also official document.
This Action cannot "specify an acceleration limit for Driver that will continue to be applied as long as the Entity exists in the simulation" and does not fit the purpose of this time.
LongitudinalDistanceAction
See also official document.
It does not fit this purpose for the same reason as LateralDistanceAction.
SpeedProfileAction
It does not fit this purpose for the same reason as LateralDistanceAction.
After conducting the above review work, it was determined that it would be appropriate to allow the ObjectController to write limits such as maximum acceleration.
After this pull request is merged, you will be able to set acceleration limits, etc. in the following format.
See here for samples below.
References
Internal URL
Regression test result
Destructive Changes
Changed behavior of the AssignControllerAction
Although this bug fix is intended to comply with the OpenSCENARIO standard, some existing scenarios were found to have been judged successful by the bug to be fixed.
In the past, in some scenarios, the maximum speed was set to 0 using AssignControllerAction to stop the PedestrianEntity before the pedestrian crossing.
When the maximum speed was specified in AssignControllerAction, it should not have been higher than that, but the function used inside it was behaving as if it was working as intended by the scenario writer because it was "doing nothing".
In this situation, I recommend to use SpeedAction instead of using AssingControllerAction if you want to set target speed of the entity. (e.g A pedestrian is stopped before an intersection.)
Example is below.
Not recommended description method
Recommended description method
Known Limitations
N/A