Veins Tutorial GUI example

514 views
Skip to first unread message

Anas

unread,
Oct 3, 2012, 12:17:58 PM10/3/12
to omn...@googlegroups.com
Hi,

I was able to install veins on my MacOSx.

Finally, when running the example, I could not see the map GUI as shown in the tutorial. 
I also tried the other example traci_launchd, but I also cannot see any map.

I am wondering what the problem is. I tired replacing sumo with sumo-gui, but the whole thing froze.

Sincerely,
Anas

Christoph Sommer

unread,
Oct 3, 2012, 2:03:57 PM10/3/12
to omn...@googlegroups.com
Dear Anas,

Anas wrote:
> I could not see the map GUI as shown in the tutorial.

I'll be happy to help.

First of all, please make sure you've read through and followed the
Veins tutorial closely. If you need help with the tutorial, make sure to
state which steps worked and which step is giving you problems. If you
need help with more advanced topics, please make sure to mention that
you were able to follow the tutorial.

Please follow this with an exact list of steps to reproduce the problem,
given an (almost) blank computer. This list will likely include which
versions of OMNeT++, SUMO, Veins, or other software to download and
where to install them. Be aware that, during the development of Veins,
various parts and versions of its components have been copied into other
model libraries and frameworks. If you are using one of these instead of
Veins, please give the name and version of the framework you are using.
Finally, if you are experiencing a crash, make sure you include the
actual error message from the debug logs (see next question).

Include all of the above information in an email to either the OMNeT++
or the SUMO users mailing list. Both lists will send your message to us,
as well as thousands of fellow researchers, so please demostrate that
you made an honest effort to solve the problem before sending your
message. Feel free to link to screen shots or movies, but please do not
attach them to your message.

Best,

Christoph

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

Luise

unread,
Oct 25, 2012, 7:46:56 AM10/25/12
to omn...@googlegroups.com, christop...@uibk.ac.at
Hi,

i have exactly the same problem. I'm using Windows 7 with Omnet 4.2, sumo 0.15.0 and veins 2.0-rc2 like it is wirtten in the tutorial.

Every 5 steps works fine, only the last step doesn't.

When i start omnetpp.ini in the IDE, i get this in MinGW:

Welcome to OMNeT++ 4.2!

Luise@Luise-PC ~
$ omnetpp
Starting the OMNeT++ IDE...

Luise@Luise-PC ~
$ /c/Users/Luise/src/veins-2.0-rc2/sumo-launchd.py -vv -c sumo.exe
Logging to c:\users\luise\appdata\local\temp\sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 49795
Handling connection from 127.0.0.1 on port 49795
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 297
Got TraCI command of length 292
Got TraCI command 0x75
Got CMD_FILE_SEND for "sumo-launchd.launch.xml"
Got CMD_FILE_SEND with data "<launch>
  <copy file="erlangen.net.xml"/>
  <copy file="erlangen.rou.xml"/>
  <copy file="erlangen.poly.xml"/>
  <copy file="erlangen.sumo.cfg" type="config"/>
  <basedir path="C:/Users/Luise/src/veins-2.0-rc2/examples/veins/"/>
  <seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is c:\users\luise\appdata\local\temp\sumo-launchd-tmp-3imuut
Base dir is C:/Users/Luise/src/veins-2.0-rc2/examples/veins/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 49796
Starting SUMO (sumo.exe -c erlangen.sumo.cfg) on port 49796, seed 0
Connecting to SUMO (sumo.exe -c erlangen.sumo.cfg) on port 49796 (try 1)
Releasing lock on port
Starting proxy mode

and omnet opens the simulation windwo like this: http://s14.directupload.net/file/d/3054/7g3eerj4_jpg.htm

and the sumo window doesn't open...

Can you help me?

PS: thanks for this lots of work you did with this  ;-)

Christoph Sommer

unread,
Oct 25, 2012, 10:00:23 AM10/25/12
to omn...@googlegroups.com
Dear Luise,

Luise wrote:
> i have exactly the same problem. I'm using Windows 7 with Omnet 4.2,
> sumo 0.15.0 and veins 2.0-rc2 like it is wirtten in the tutorial.
> [...]
> $ /c/Users/Luise/src/veins-2.0-rc2/sumo-launchd.py -vv -c sumo.exe

This will only work if sumo.exe is in your search path. Otherwise, you
will have to tell sumo-launchd.py the complete path to sumo.exe, like so:

/c/Users/user/src/veins-2.0-rc2/sumo-launchd.py -vv -c
/c/Users/user/src/sumo-0.15.0/bin/sumo.exe

Luise

unread,
Oct 25, 2012, 11:07:36 AM10/25/12
to omn...@googlegroups.com, christop...@uibk.ac.at

This will only work if sumo.exe is in your search path. Otherwise, you
will have to tell sumo-launchd.py the complete path to sumo.exe, like so:

/c/Users/user/src/veins-2.0-rc2/sumo-launchd.py -vv -c
/c/Users/user/src/sumo-0.15.0/bin/sumo.exe



I have it in my path and it's the same, if i write the complete comand :/

Luise

unread,
Oct 25, 2012, 11:30:50 AM10/25/12
to omn...@googlegroups.com, christop...@uibk.ac.at
 There also are a lot of warnigs in the omnetpp.ini data like this http://s14.directupload.net/file/d/3054/3pq9cwnj_png.htm

is it normal?

David Eckhoff

unread,
Oct 25, 2012, 5:34:22 PM10/25/12
to omn...@googlegroups.com
Hello Luise,
These warnings are normal, because at the time omnetpp checks your
omnetpp.ini the nodes do not exit yet, as they are created during the
simulation.

You're starting sumo.exe which is the command line version of sumo. If
you want the gui (which shows the map and vehicles) to be opened you
have to choose sumo-gui.exe.

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

Luise

unread,
Oct 26, 2012, 2:50:36 AM10/26/12
to omn...@googlegroups.com, d...@cs.fau.de

These warnings are normal, because at the time omnetpp checks your
omnetpp.ini the nodes do not exit yet, as they are created during the
simulation.

You're starting sumo.exe which is the command line version of sumo. If
you want the gui (which shows the map and vehicles) to be opened you
have to choose sumo-gui.exe.



Hi

thank you!
Last night I figured already out that this screenshots in the tutorial are made in debug mode ;-)
so everything works like it should be and the hint with the gui also works quite good and is really helpful because it is much faster than the debug mode and i need to see the roads for my stuff, too!

regards
Luise

Stefano Anzilotti

unread,
Sep 1, 2014, 1:13:15 PM9/1/14
to omn...@googlegroups.com, d...@cs.fau.de
Hi Anas, I would like to know if you can write what commands you used to install VEINS on MacOSX. Thank you

Izaz Ahmad Khan

unread,
Feb 10, 2017, 3:00:43 PM2/10/17
to OMNeT++ Users, christop...@uibk.ac.at
Dear Sir,

 Can you please tell me how can we bring the sumo.exe to our search path?

Regards
Azaz

Christoph Sommer

unread,
Feb 10, 2017, 6:22:33 PM2/10/17
to omn...@googlegroups.com
Dear Azaz,

how to change the search path depends on your operating system and its
version and should be documented in its user manual. If you are looking
for online help on how to configure your operating system, I can only
point you to tutorials on the world wide web.

For example, to change the search path in windows, you could try
searching for "how to change search path in windows". For me, the first
3 hits on Google are all valid solutions.

Best,

Christoph
> --
> 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+u...@googlegroups.com
> <mailto:omnetpp+u...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/omnetpp.
> For more options, visit https://groups.google.com/d/optout.



--
Dr. Christoph Sommer
Distributed Embedded Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/
Reply all
Reply to author
Forward
0 new messages