静脉教程仿真中的错误 [英] Error in Veins tutorial simulation

查看:140
本文介绍了静脉教程仿真中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始将Omnet++与静脉一起用于VANET模拟,但是在本教程结束时(

I am starting to use Omnet++ with veins for VANET simulations, but at the end of the tutorial (http://veins.car2x.org/tutorial/), where it says to go into the IDE and click "Run As > OMNeT++ simulation",

发生错误:

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

Cannot evaluate parameter 'headerLength': (omnetpp::cDoubleParImpl)headerLength: Cannot cast from type double to integer - in module (Mac1609_4) RSUEXAMPLESCENARIO.rsu[0].nic.mac1609_4 (id=12), during network initialization.

好吧,尝试从double强制转换int会崩溃,但是我不知道该在哪里,而且我无法解决该问题!

Ok, it crash trying to cast int from double, but i don't know where and i can't fix that!

感谢答案

推荐答案

已在此处得到解答:此提交中的已修复.您可以按照@Christoph Sommer的建议将omnet ++降级,或者如果您想坚持使用最新版本,则可以尝试这种解决方法. 由于我有相同的确切问题(使用最新版本的omnet ++),因此它应该可以工作.

It was fixed in this commit. You can downgrade omnet++ as @Christoph Sommer suggested or you can try this workaround if you wanna stick to the last version. It should work since I had the same exact problem (using a recent version of omnet++).

最诚挚的问候.

这篇关于静脉教程仿真中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆