how to get the accurate vehicle speed?

78 views
Skip to first unread message

Dalia Adly

unread,
Sep 17, 2019, 4:39:16 AM9/17/19
to 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

unread,
Sep 17, 2019, 5:16:54 AM9/17/19
to 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

unread,
Sep 18, 2019, 3:07:05 PM9/18/19
to OMNeT++ Users
The problem has been solved . I really appreciate your reply . Thank you prof. Christoph

suwa...@gmail.com

unread,
Sep 18, 2019, 3:43:51 PM9/18/19
to 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

unread,
Sep 19, 2019, 4:15:52 AM9/19/19
to 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

unread,
Sep 19, 2019, 12:23:02 PM9/19/19
to 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. 

Reply all
Reply to author
Forward
0 new messages