如何在AnyLogic中模拟车辆和行人的碰撞。

huangapple go评论51阅读模式
英文:

How to simulate crash of cars and pedestrians in anylogic

问题

I'm working on a simulation of a zone evacuation, where all agents try to exit the zone once I press a button. However, I'm struggling with the issue of pedestrians colliding with cars or getting hit by them. The main issue is that pedestrians are passing through the cars. I need to ensure they stop when they crash or stop the cars in time to avoid collisions. I would greatly appreciate any suggestions or guidance on how to tackle this issue, or if there is another approach I should consider. Thank you in advance.

I have tried creating roads and making agents move in different directions, but regardless of what I do, they still don't collide with each other.

英文:

I'm working on a simulation of a zone evacuation, where all agents try to exit the zone once I press a button. However, I'm struggling with the issue of pedestrians colliding with cars or getting hit by them, The main issue is that pedestrians are passing through the cars, i need to sink when they crash or stop the cars in the time they crash. I would greatly appreciate any suggestions or guidance on how to tackle this issue, or if there is another approach I should consider. Thank you in advance

I have tried creating roads and making agents move in different directions, but regardless of what I do, they still don't collide with each other.

答案1

得分: 1

他们永远不会,这两个库并不是为了与彼此“互动”而设计的。

然而,AnyLogic 非常灵活,你可以创建它们。你需要为行人和汽车添加“眼睛”,定期扫描环境本身...

这里 是一个演示这种方法的示例模型。我在这篇博客文章中描述了如何实现它。

英文:

They will never, the 2 libraries are not designed to "interact" with each other.

However, AnyLogic being infinitely flexible, you can make them. You need to give peds and cars "eyes" that regularly scan the environment themselves...

Here is an example model demo-ing the approach. I describe how to get there in this blog post.

huangapple
  • 本文由 发表于 2023年4月11日 13:59:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/75982781.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定