OMNET, INET and SUMO

915 views
Skip to first unread message

Vij

unread,
Apr 23, 2012, 1:30:19 AM4/23/12
to omn...@googlegroups.com
 
We are trying to simulate a mobile ad-hoc network. I have the following working:
 
- OMNET and INETMANET with all required configurations and customized stats (we have 10 cars with one car transmitting a help msg working as desired)
 
- SUMO Veins simple tutorial working and showing the example map
 
What we are trying to do is to show out 10 car network moving on a SUMO map (even the sample provided in veins). How do we accomplish this? I added

*.manager.launchConfig = xmldoc("erlangen.launchd.xml"); in the omnet.ini file and copied all the required files into my project. This seems to connect to the SUMO server correctly but I do not see the map load up! Can anyone please advise on what we are doing incorrectly?

Any help will be very much appreciated. [inetmanet-07463fd, veins-2.0-rc1]

Vij

unread,
Apr 23, 2012, 1:55:39 AM4/23/12
to omn...@googlegroups.com
Also the SUMO version used is 0.13.1. Additionally, I tried running the inetmanet/examples/traci_launchd and did not have much success - is there a specific version of SUMO required for this to work?

Christoph Sommer

unread,
Apr 23, 2012, 9:17:14 AM4/23/12
to omn...@googlegroups.com
Dear Vij,

Vij wrote:
> I tried running the inetmanet/examples/traci_launchd and did not have
> much success - is there a specific version of SUMO required for this to
> work?

this should be covered in the Tutorial and FAQ.

http://veins.car2x.org/tutorial/
http://veins.car2x.org/documentation/faq/

Best,

Christoph

--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria
Phone: +43 512 507-96835 / Fax: -9888
http://ccs.uibk.ac.at/~sommer/

Vijoy Gopalan

unread,
Apr 23, 2012, 10:32:58 AM4/23/12
to omn...@googlegroups.com
Thank you very much  for the reply! Just to clarify, I am able to run the veins tutorial without any issues as per the tutorial. However, I am having trouble running the  "inetmanet/examples/traci_launchd" example, which is why I was wondering if inetmanet needs a different version of SUMO or of there is a problem with that particular example.
 
 I have the following working:
- OMNET and INETMANET with all required configurations and customized stats (we have 10 cars with one car transmitting a help msg working as desired)
 - SUMO Veins tutorial working and showing the example map
What we are trying to do is to show out 10 car network moving on a SUMO map (even the sample provided in veins). How do we accomplish this? I added
*.manager.launchConfig = xmldoc("erlangen.launchd.xml"); in the omnet.ini file and copied all the required files into my project. This seems to connect to the SUMO server correctly but I do not see the map load up! Can anyone please advise on what we are doing incorrectly?
Any help will be very much appreciated. [inetmanet-07463fd, veins-2.0-rc1]

--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp


Christoph Sommer

unread,
Apr 23, 2012, 11:05:14 AM4/23/12
to omn...@googlegroups.com
Dear Vij,

Vijoy Gopalan wrote:
> I am able to run the veins tutorial without any issues as per the tutorial.
> However, I am having trouble running the "inetmanet/examples/traci_launchd" example
> [inetmanet-07463fd, veins-2.0-rc1]

thanks for the clarification!

Unfortunately, I am unable to compile INETMANET (rev. 07463fd produces
duplicate but incompatible AirFrame_m.h include files on my computer).

Could you provide some information about what kind of trouble you are
experiencing (see the "What happened? My simulation crashed." entry in
the Veins FAQ)?

Maybe the problem can be reconstructed based on the error logs you are
getting...

Alfonso Ariza Quintana

unread,
Apr 23, 2012, 11:07:43 AM4/23/12
to omn...@googlegroups.com

Please, Christoph, can you send me a report with the problem?
I can try to fix it.


-----Mensaje original-----
From: Christoph Sommer
Sent: Monday, April 23, 2012 5:05 PM
To: omn...@googlegroups.com


Subject: Re: [Omnetpp-l] Re: OMNET, INET and SUMO

Dear Vij,

thanks for the clarification!


Best,

Christoph

--

Vijoy Gopalan

unread,
Apr 23, 2012, 11:48:48 AM4/23/12
to omn...@googlegroups.com
Thank you for responding! The "inetmanet/examples/traci_launchd" example connects to SUMO but the SUMO server keeps trying to connect back and is unsuccesful and eventually stops trying. This causes the example to crash. Unfortunately, I am not in front of the machine I am experiencing the issue. I will get more precise information tonight and send it to you!
 
The above example is one case,the other case is my own scenario which I have construcuted with 10 nodes as a ad-hoc network simulation. I have the simulation working with customized hop-to-hop stats sending UDP messages using the INETMANET library classes. Now I am trying to add a SUMO map to it when I added the *.manager.launchConfig = xmldoc("erlangen.launchd.xml") ; to my ini file it does connect to SUMO without errors but I do not see a map.  I will send more precise details tonight, but that is where I am stuck! Thanks again for the most helpful responses and your time!

From: Christoph Sommer <christop...@uibk.ac.at>
To: omn...@googlegroups.com
Sent: Monday, April 23, 2012 11:05 AM
Subject: Re: [Omnetpp-l] Re: OMNET, INET and SUMO

Christoph Sommer

unread,
Apr 23, 2012, 2:29:38 PM4/23/12
to omn...@googlegroups.com
Dear Alfonso,

Vijoy Gopalan wrote:
> I am having trouble running the "inetmanet/examples/traci_launchd" example

> [inetmanet-07463fd]

the problems might be caused by two recent changes:

1e1b9865 (changes radio sensitivity from dBm to mW)
7e489ffb (changes initialize from cSimpleModule to BasicModule)

If you find the time, could you please undo those?


Thanks!

Vijoy Gopalan

unread,
Apr 23, 2012, 8:03:18 PM4/23/12
to omn...@googlegroups.com
Please see below the transcript from SUMO and OMNET when  I launch the "inetmanet/examples/traci_launchd".
 
Any help will be greatly appreciated! Many thanks!
 
=========================
Logging to c:\users\vrinjoy\appdata\local\temp\sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 64355
Handling connection from 127.0.0.1 on port 64355
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 293
Got TraCI command of length 288
Got TraCI command 0x75
Got CMD_FILE_SEND for "sumo-launchd.launch.xml"
Got CMD_FILE_SEND with data "<launch>
  <copy file="net.net.xml"/>
  <copy file="routes.rou.xml"/>
  <copy file="sumo.sumo.cfg" type="config"/>
  <basedir path="D:/programs/omnet/omnetpp-4.2.1/inetmanet-inetmanet-0746
3fd/examples/traci_launchd/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is c:\users\vrinjoy\appdata\local\temp\sumo-launchd-tmp-ihvod0
Base dir is D:/programs/omnet/omnetpp-4.2.1/inetmanet-inetmanet-07463fd/e
xamples/traci_launchd/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 64356
Starting SUMO (d:/programs/omnet/omnetpp-4.2.1/sumo-0.13.1/bin/sumo.exe -
c sumo.sumo.cfg) on port 64356, seed 0Connecting to SUMO (d:/programs/omnet/omnetpp-4.2.1/sumo-0.13.1/bin/sumo.
exe -c sumo.sumo.cfg) on port 64356 (try 1)
Error ([Errno 10061] No connection could be made because the target machine acti
vely refused it)
....
<repeated 10 times>
....
Releasing lock on port
Cleaning up
Aborting on error: [Error 32] The process cannot access the file because it is b
eing used by another process: 'c:\\users\\vrinjoy\\appdata\\local\\temp\\sumo-la
unchd-tmp-ihvod0\\sumo-launchd.err.log'
Closing connection from 127.0.0.1 on port 64355
==================================
On the OMNET side this is what I see:
Loading images from D:\programs\omnet\omnetpp-4.2.1\inetmanet-inetmanet-07463fd\examples\traci_launchd\bitmaps: *: 1
Loading images from d:\programs\omnet\omnetpp-4.2.1\images: *: 0 abstract/*: 90 background/*: 4 block/*: 320 device/*: 195 maps/*: 9 misc/*: 70 msg/*: 55 old/*: 111 status/*: 28
Plugin path: ./plugins
RUNTIME ERROR. A cRuntimeError exception is about to be thrown, and you
requested (by setting debug-on-errors=true in the ini file) that errors
abort execution and break into the debugger.
You should now probably be running the simulation under gdb or another
debugger. The simulation kernel will now raise a SIGABRT signal which will
get you into the debugger. If you are not running under a debugger, you can
still use the core dump for post-mortem debugging. Once in the debugger,
view the call stack (in gdb: "bt" command) to see the context of the
runtime error.
<!> Error in module (TraCIScenarioManagerLaunchd) scenario.manager (id=3) during network initialization: Model error: Could not read 4 bytes from TraCI server, got only 0: Unknown error.
TRAPPING on the exception above, due to a debug-on-errors=true configuration option. Is your debugger ready?
===========================================
 
In the sumo error log:
 
Error: Could not build projection!
Quitting (on error).
 
========================================
From: Christoph Sommer <christop...@uibk.ac.at>
To: omn...@googlegroups.com
Sent: Monday, April 23, 2012 2:29 PM

Subject: Re: [Omnetpp-l] Re: OMNET, INET and SUMO

Christoph Sommer

unread,
Apr 24, 2012, 5:25:56 AM4/24/12
to omn...@googlegroups.com
Dear Vijoy,

Vijoy Gopalan wrote:
> In the sumo error log:
>
> Error: Could not build projection!

You can work around this error by setting the projParameter of your
net.net.xml to "!".

If you are also interested in other changes since the last INETMANET
update, feel free to merge (manually, I'm afraid) those from my INET
repository at [1].

Best,

Christoph


[1] https://github.com/sommer/inet-sommer/tree/traci/src/world/traci

Alfonso Ariza Quintana

unread,
Apr 24, 2012, 10:37:11 AM4/24/12
to omn...@googlegroups.com
Ok, the I will try to undo the changes.


> Date: Mon, 23 Apr 2012 20:29:38 +0200
> From: christop...@uibk.ac.at
> To: omn...@googlegroups.com

> Subject: Re: [Omnetpp-l] Re: OMNET, INET and SUMO
>

Rasha Kaiss

unread,
Feb 18, 2014, 3:00:18 PM2/18/14
to omn...@googlegroups.com
hi Vij 
i'm countering the same problem ... please did u solve it ?


Julian

unread,
Mar 19, 2015, 9:23:32 AM3/19/15
to omn...@googlegroups.com, vij...@yahoo.com
Hi everyone!

I'm also getting this weird error from SUMO...

Starting SUMO (C:/Users/jgarbiso/src/sumo-0.22.0/bin/sumo.exe -c erlangen.sumo.cfg) on port 59266, seed 0
Releasing lock on port
Cleaning up
Aborting on error: [Error 32] The process cannot access the file because it is being used by another process: 'c:\\users\\jgarbiso\\appdata\\local\\temp/sumo-launchd-tmp-thdxxs/sumo-launchd.err.log'
Closing connection from 127.0.0.1 on port 59265


But my sumo-launchd.err.log is empty. So apparently it's not about projections. Does anyone have an idea of the possible reasons for this?

Best,
Julian

Raunak Gupta

unread,
Mar 31, 2015, 7:14:51 AM3/31/15
to omn...@googlegroups.com

Hi All,

In SUMO, when a vehicle is on its leftmost lane and running towards a junction I figured out that it suddenly jumps to a differen lane even though the previous lane is not connected to it.
I need to know how can I make the path stable so as to go straight without jumping to a different lane while crossing junction.

For reference I am attaching pictures of SUMO gui. Thanks in advance.

Regards
Raunak
2nd.png
3rd.png
1st.png

rakez

unread,
Sep 13, 2015, 10:29:24 PM9/13/15
to OMNeT++ Users, vij...@yahoo.com
Hello Vij;
How did you manage to solve your problem? I am also having problem in running Inetmant in omnet4.4 and i can successfully run Veins 3.0...
waiting for your reply.

thank you 
Reply all
Reply to author
Forward
0 new messages