vechile在静脉中的速度缓慢增加 [英] speed of vechile in veins increases slowly

查看:249
本文介绍了vechile在静脉中的速度缓慢增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用静脉4.4,OMNeT ++ 5.0和SuMO 0.25.我已将车辆速度设置为0以通过traciVehicle->setSpeed(0)停止它们,然后在某些情况下将它们通过traciVehicle->setSpeed(20)设置为20以通过交叉路口,但无缘无故它缓慢增加直到其时间结束,所以我可以使其更快吗? ??

I'm using veins 4.4, OMNeT++ 5.0 and SuMO 0.25. I have set vehicle speed to 0 to stop them by traciVehicle->setSpeed(0) then after certain case i set them to 20 by traciVehicle->setSpeed(20) to cross the intersection but for no reason it increases slowly till its time finish , so can i make it faster ???

推荐答案

SuMO中的车辆具有

A vehicle in SuMO has the speedMode parameter which determines how it should behave for instance in terms of acceleration and deceleration.

默认情况下,此参数设置为考虑所有检查,例如与其他车辆保持安全距离和最大加速度.设置为0时,车辆将忽略所有检查,例如最大加速度.

By default this parameters is set to consider all checks like keeping a safe gap to other vehicles and the maximum acceleration. When set to 0 the vehicle ignores all checks like the maximum acceleration.

尝试为静脉中的speedMode设置不同的值,以实现预期的车辆性能.您可以使用 TraCICommandInterface TraCITestApp 作为示例.您也可以使用maximumSpeed参数.

Try setting different values for the speedMode in Veins to achieve the expected vehicle behavior. You can do so by using the TraCICommandInterface and the TraciVehicle. Have a look at the TraCITestApp for an example. Also you could play around with the maximumSpeed parameter.

这篇关于vechile在静脉中的速度缓慢增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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