how to get the accurate vehicle speed?

瀏覽次數:78 次
跳到第一則未讀訊息

Dalia Adly

未讀,
2019年9月17日 凌晨4:39:162019/9/17
收件者:OMNeT++ Users

have made some modifications to run GPSR protocol in INET framework on the network scenario existing in the veins-inet subproject.

The problem is that the current speed (mobility->getCurrentSpeed) of any vehicle varies between (zero and 1 or -1 ) and the maximum speed is always = nan.

The mobility type used is veins-inet mobility.

Here are some results of The current speed for node[1] at different time intervals :



** Event #177  t=13.778533849167  Scenario.node[1].networkLayer.ip (IPv4, id=107)  on ping1 (inet::ICMPMessage, id=134)
INFO (GPSR)Scenario.node[1].gpsr: Scenario.node[1].gpsr: self position= (120.706, 129.627, 0)
INFO (GPSR)Scenario.node[1].gpsr: Scenario.node[1].gpsr: self speed= (0.99343, -0.11444, 0)

* Event #240  t=16.778533849167  Scenario.node[1].networkLayer.ip (IPv4, id=107)  on ping4 (inet::ICMPMessage, id=192)
INFO (GPSR)Scenario.node[1].gpsr: Scenario.node[1].gpsr: self position= (129.95, 90.9386, 0)
INFO (GPSR)Scenario.node[1].gpsr: Scenario.node[1].gpsr: self speed= (6.12323e-17, -1, 0)

** Event #317  t=20.778533849167  Scenario.node[1].networkLayer.ip (IPv4, id=107)  on ping8 (inet::ICMPMessage, id=258)
INFO (GPSR)Scenario.node[1].gpsr: Scenario.node[1].gpsr: self position= (129.95, 35.6802, 0)
INFO (GPSR)Scenario.node[1].gpsr: Scenario.node[1].gpsr: self speed= (6.12323e-17, -1, 0)

 

So, I have three questions:
1-what kind of speed mentioned in the result. Is it velocity?
2-How to get the actual speed of vehicles in(m/s) as mentioned in sumo?

3- Can i use TraciMobility instead?

Finally, I am using instant veins-4.7.1

Christoph Sommer

未讀,
2019年9月17日 清晨5:16:542019/9/17
收件者:OMNeT++ Users
Dalia Adly wrote:
>
> The problem is that the current speed (mobility->getCurrentSpeed) of any vehicle varies between (zero and 1 or -1 )

Sorry for the late reply! This seems to be a bug in the veins_inet module of Veins 4.7.1. See here for a proposed patch:

https://stackoverflow.com/questions/57913748/how-to-get-the-accurate-vehicle-speed/57970889#57970889

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

Dalia Adly

未讀,
2019年9月18日 下午3:07:052019/9/18
收件者:OMNeT++ Users
The problem has been solved . I really appreciate your reply . Thank you prof. Christoph

suwa...@gmail.com

未讀,
2019年9月18日 下午3:43:512019/9/18
收件者:omn...@googlegroups.com
Good day Prof. Please, what oment and inetmanet versions compatible to windows 10? I will really appreciate response on this.


--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsub...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/D83A167F-9567-4FC7-8096-18D997EA98E9%40ccs-labs.org.

Alfonso Ariza Quintana

未讀,
2019年9月19日 凌晨4:15:522019/9/19
收件者:omn...@googlegroups.com
You can use omnet 5.5.1 and inetmanet-3.x or inetmanet 4.x, bath are compatible with omnet 5.5.1
inetmanet 4.x is based in inet 4.x branch

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de suwa...@gmail.com <suwa...@gmail.com>
Enviado: miércoles, 18 de septiembre de 2019 21:43
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] how to get the accurate vehicle speed?
 
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/1332362869.3362027.1568835819134%40mail.yahoo.com.

suwa...@gmail.com

未讀,
2019年9月19日 中午12:23:022019/9/19
收件者:omn...@googlegroups.com
Thank you sir. I am into DDOS detection in Cloud computing, PLEASE, how can i get REASE and DISTACK or their alternative. Many Thanks. 

回覆所有人
回覆作者
轉寄
0 則新訊息