【问题标题】:Error in Veins tutorial simulation静脉教程模拟中的错误
【发布时间】:2018-05-16 08:50:45
【问题描述】:

我开始使用带有静脉的Omnet++ 进行VANET 模拟,但在教程结束时 (http://veins.car2x.org/tutorial/),它说要进入 IDE 并单击“运行方式 > OMNeT++ 模拟”,

发生错误:

无法评估参数“headerLength”:(omnetpp::cDoubleParImpl)headerLength:无法从双精度类型转换为整数 - 在模块 (Mac1609_4) RSUEXAMPLESCENARIO.rsu[0].nic.mac1609_4 (id=12) 中,在网络初始化期间.

好的,尝试从 double 转换 int 时它崩溃了,但我不知道在哪里,我无法解决这个问题!

感谢解答

【问题讨论】:

  • 问题应该是独立的。请在问题中发布包含代码的minimal reproducible example
  • 您使用的 OMNeT++ 版本错误。查看教程以获取支持的版本列表。

标签: casting ide omnet++ veins sumo


【解决方案1】:

这里已经回答了:Error while running example of the veins in the last step of the installation

已修复 in this commit。您可以按照@Christoph Sommer 的建议降级 omnet++,或者如果您想坚持使用最后一个版本,您可以尝试这种解决方法。 它应该可以工作,因为我遇到了同样的问题(使用最新版本的 omnet++)。

最好的问候。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多