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

RJD-1457/traffic_sink_refactor #1464

Merged
merged 46 commits into from
Dec 23, 2024
Merged

Conversation

robomic
Copy link
Contributor

@robomic robomic commented Nov 28, 2024

Abstract

This PR contains the continuation of #1443

Details

  1. There is no longer lanelet::Id passed into TrafficSink, but an optional<lanelet::Id>. It is still used solely for the purpose of visualization, where nullopt means that the sink was placed too far from the lane. Resigning from passing lanelet::Id altogether turned out to be problematic, because ends of multiple lanelets overlap and the corresponding lanelet could not be determined.
  2. Additionally I would like to propose an alternative approach to the set sinkable_entity_types variable.
  3. I have removed the special case if sinkable_entity_types is empty, then all entities should sink. In my opinion it could be misleading (someone could pass empty sinkable_entity_types and expect that no sinking behavior will occur). Now if we want to sink all entities, we need to provide the full set sinkable_entity_types.
  4. I have removed the bool auto_sink variable, which could be equivalent to sinkable_entity_types.empty() with this approach.
  5. The default behavior is sinkable_entity_types = {}, that is no auto sinks are generated.

References

Regressions OK

hakuturu583 and others added 25 commits November 8, 2024 12:12
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
Signed-off-by: Masaya Kataoka <[email protected]>
… into feature/enable_specify_entity_type_in_autosink
…pe_in_autosink' into feature/enable_specify_entity_type_in_autosink
Copy link

github-actions bot commented Nov 28, 2024

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.

@robomic robomic changed the base branch from master to feature/enable_specify_entity_type_in_autosink December 9, 2024 12:49
@robomic robomic changed the base branch from feature/enable_specify_entity_type_in_autosink to master December 9, 2024 12:50
@robomic robomic self-assigned this Dec 10, 2024
@robomic robomic added bump minor If this pull request merged, bump minor version of the scenario_simulator_v2 wait for regression test labels Dec 10, 2024
@robomic robomic marked this pull request as ready for review December 11, 2024 10:47
@robomic robomic requested a review from hakuturu583 December 11, 2024 10:49
@robomic robomic requested a review from hakuturu583 December 19, 2024 10:32
Copy link
Collaborator

@hakuturu583 hakuturu583 left a comment

Choose a reason for hiding this comment

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

LGTM

@hakuturu583
Copy link
Collaborator

Since this PR is a continuation of #1443, I am currently checking with the reviewer of the original PR, @yamacir-kit, to see if a review by him is needed.

@hakuturu583 hakuturu583 merged commit efe4305 into master Dec 23, 2024
12 checks passed
@github-actions github-actions bot deleted the RJD-1457/traffic_sink_refactor branch December 23, 2024 08: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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants