Veins - recording neighborhood information of each node

391 views
Skip to first unread message

Ilker Basaran

unread,
Feb 24, 2015, 7:37:03 AM2/24/15
to omn...@googlegroups.com
Hi,

Two vehicles are neighbors if they are within each other's transmission range and there are no obstacles to blocks the transmission.

I'm trying to record neighboring nodes of each vehicle at 1 sec time intervals. The location of each vehicle should also be recorded.

I don't know where to start and will be glad if you could help me out. I'm using omnet 4.4.1, veins 2.2 amd sumo 0.17.1

Thanks and best regards,

Christoph Sommer

unread,
Feb 24, 2015, 8:43:08 AM2/24/15
to omn...@googlegroups.com
Ilker Basaran wrote:
> I don't know where to start and will be glad if you could help me out.

The Veins tutorial has all the necessary information to run a basic
simulation of a vehicular network. A high level overview of Veins is
given in the Veins documentation. The next steps depend on what you want
to do.

For creating own simulations, you will need to learn how to use
OMNeT++. Excellent tutorials, videos, and a comprehensive user manual
are available on the documentation pages on the OMNeT++ website.

If you know how to use OMNeT++ and want to write custom simulation
modules (e.g., for new applications), you might find an API documenation
of the Veins simulation module library helpful. It can be created from
the IDE, by clicking Project > Generate NED Documentation..., or from
the command line, by running make doxy. To start reading the module
documenation, open doc/index.html in your browser.

If you use one of the available road traffic scenarios, there is no
need to learn much about SUMO. If you want to run your simulations on
custom road maps, you will need to learn how to use SUMO, though. SUMO
comes with an excellent tutorial (Hello SUMO) and an extensive online
user manual, available on the documentation pages on the SUMO website.

If you want to implement new TraCI commands for interacting with
(or getting data from) the running road traffic simulation, the SUMO
TraCI documentation has a list of available commands.

Best,

Christoph


--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/

Ilker Basaran

unread,
Feb 26, 2015, 2:03:28 AM2/26/15
to omn...@googlegroups.com
Can I have the neighbors printed out to .vec file?

--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/bJo4uAXkrDc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christoph Sommer

unread,
Feb 26, 2015, 3:14:13 AM2/26/15
to omn...@googlegroups.com
Ilker Basaran wrote:
> Can I have the neighbors printed out to .vec file?

please refer to the OMNeT++ manual and beginners' tutorials for
information on how to make simulation models log data to .sca and .vec
files. In brief, the easiest way is to declare a signal and a statistic.

Ilker Basaran

unread,
Mar 1, 2015, 11:15:41 AM3/1/15
to omn...@googlegroups.com
Dear Christoph,

First of all, thanks a lot for replying me repeatedly. 

But now, I have a more fundamental problem..the reason I asked about neighbor list of each node at every second, I wanted to examine the neighborhood changes and extract a graph out of those neighborhood information.

This graph would have vehicles as edges and links between vehicles as vertices at time t0. Then I would compare graphs of t5, t10 and so on, trying to figure out some pattern that could be used in routing.

BUT, now I realize this: isn't this idea completely against the usage of geographical routing using GPS info? this would be doing everything again in topological manner..isn't that right? and links in this network are so volatile that extracting anything meaningful will be very hard..

If so, I need to change my direction right away..

Thanks a lot in advance..

--ilker


--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/bJo4uAXkrDc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

ben hassine Afef

unread,
Aug 30, 2016, 6:25:06 AM8/30/16
to OMNeT++ Users
Hi Ilker Basaran, 

I have the same problem as you, Did you find how to do it ? 
Reply all
Reply to author
Forward
0 new messages