what policy is based vehicle rerouting in case of accident?

为君一笑 提交于 2019-11-27 08:38:09

问题


I'm doing a scenario where there is 1 route at the beginning and then it splits into 3, then merges into 1 again. I'm stopping the car in the first lane, the second car stops also, the third one reroutes in the middle lane, the fourth goes to the queue, the fifth reroutes, the sixth goes to the queue, the seventh reroutes.....why is it behaving like that? I can't understand where to change this "balancing" or "threshold". Any suggestion?


回答1:


The Veins 4.6 sample application behaves as follows:

  • if a vehicle is stopped (and has been driving) and has not yet sent a warning message, it sends a message containing its current road (TraCIDemo11p.cc, line 82)
  • if a vehicle receives a warning message, it tries to find a new route through the road network that avoids this road (TraCIDemo11p.cc, line 48); in addition, if it has not yet sent a warning message, it re-sends the received message (TraCIDemo11p.cc, line 54)

So, if you use this sample application and observe that some vehicles do not change their route, this can be attributed (among others) to either of the following effects:

  • they never received a message that told them about the congestion
  • they received a message, but couldn't find a route through the road network that would avoid the congestion

Why a vehicle did not receive a message can again be attributed (among others) to any of the following:

  • a warning message was transmitted to them, but they could not receive it (e.g., due to interference)
  • a warning message was transmitted through the network before they started their trip (remember, warning messages are not repeated by the example application)


来源:https://stackoverflow.com/questions/46373278/what-policy-is-based-vehicle-rerouting-in-case-of-accident

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!