Model error: ASSERT: condition (intersectAt.size() % 2) == 0 false in function calculateAttenuation, veins/modules/obstacle/Obstacle.cc

前端 未结 1 382
不思量自难忘°
不思量自难忘° 2021-01-16 17:42

I use Veins-4a2 and I have modified the scenario of the demo example. When I executed the simulation, I had this error:

Error in module (Veins::ObstacleControl) RSU

相关标签:
1条回答
  • 2021-01-16 18:33

    There is a known bug in Veins versions up to 4.4, where sometimes a corner case is triggered that results in the number of walls between sender and receiver being off by one. To guarantee that either correct results or no results are returned, the simulation is aborted if such a case is detected.

    If this happens only a few times during a large simulation, you might simply want to remove this ASSERT statement.

    If this happens a lot, your obstacle definitions are likely wrong (e.g., a building with only two walls)

    0 讨论(0)
提交回复
热议问题