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

Collision in intersection . What caused it? #566

Open
mrzheng8 opened this issue Dec 16, 2021 · 2 comments
Open

Collision in intersection . What caused it? #566

mrzheng8 opened this issue Dec 16, 2021 · 2 comments

Comments

@mrzheng8
Copy link

I have completed the installation of BARK and the configuration of the environment. But when I run the examples by "bazel run //bark/examples:intersection" , I found that multiple agents often collide in the running results, and the whole running is not very smooth. I want to know why there is a collision in this example.
Figure2
Figure_3

@juloberno
Copy link
Contributor

Hi,
Sorry for our late consideration. There were some delays due to the Christmas holidays.

I looked at the example. The model BehaviorIntersectionRuleBased is not yet adapted to the newest geometry implementations.

I switched the example to use the model BehaviorIDMClassic. The IDM is a car-following model but can be adapted to intersections with careful parameter tuning.

# at what maximum lateral distance between vehicle shapes are other vehicles considered in the IDM calculations: We use a high value for vehicles giving way and low value for vehicles taking way
param_server_give_way["BehaviorIDMClassic"]["MaxLatDifferenceToBeFront"] = 15.0

# at what minimum longitudinal distance are other vehicles considered in the IDM calculations: We can avoid vehicles blocking the intersection by increasing this value. However, a to high value increases the risk of collisions
param_server_give_way["BehaviorIDMClassic"]["MaxLonDifferenceToBeFront"] = 4.0

# By increasing the minimum spacing parameter of the IDM vehicles brake such that the intersection area is not blocked
param_server_give_way["BehaviorIDMClassic"]["MinimumSpacing"] = 8.0

You can adapt these parameters to your use case.

@mrzheng8
Copy link
Author

mrzheng8 commented Jan 9, 2022

When the "step_time=0.2" , The whole operation looks very stuck. I tried to change this number to 1 and 0.05, but the effect was not very good. How can I solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants