Veins: Load SUMO's Additional Files for Simulation Output

1,087 views
Skip to first unread message

Daniel Febrian Sengkey

unread,
Mar 19, 2015, 5:10:01 AM3/19/15
to omn...@googlegroups.com
Hi all,

I want to produce the edge-based traffic measure as defined in [1]. Therefore I made my additional file named main.add.xml and load it as the other xml configuration files to my main.launchd.xml.

My main.add.xml looks like this:
<additional>
    <edgeData id="edgebased" file="main-out.xml" />
</additional>


main.launchd.xml like this:
<launch>
    <copy file="main.net.xml" />
    <copy file="main.rou.xml" />
    <copy file="main.add.xml" />
    <copy file="main.settings.xml" />
    <copy file="main.sumo.cfg" type="config" />
</launch>


main.sumo.cfg
<configuration>
    <input>
        <net-file value="main.net.xml" />
        <route-files value="main.rou.xml" />
        <gui-settings-file value="main.settings.xml" />
        <additional-files value="main.add.xml" />
    </input>

... (omitted).

My simulation (while run in couple mode of Veins+SUMO) yields no output file (main-out.xml), but when I tested the scenario only with SUMO the expected result file was produced. I notice that in the erlangen example configuration a poly.xml was loaded into simulation.

Does simulation loaded in coupled with Veins only load additional file which supporting the map (such as poly.xml) and not for the simulation output?
How do I get the expected result file?

Thanks in advance.

Best regards,
Daniel

Christoph Sommer

unread,
Mar 19, 2015, 5:26:29 AM3/19/15
to omn...@googlegroups.com
Dear Daniel,

If you use sumo-launchd, your simulations will be started in a temporary
folder (to allow you to run multiple simulations in parallel, without
them conflicting). This means, your output files will land in a
temporary folder (and be deleted after the simulation terminates). To
work around this, you can turn off deletion of temp folders in the
launchd, or you could try setting an absolute path for the output file.

Best,

Christoph



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

Daniel Febrian Sengkey

unread,
Mar 19, 2015, 5:55:52 AM3/19/15
to omn...@googlegroups.com

Dear Dr. Sommer,


> To work around this, you can turn off deletion of temp folders in the launchd, or you
> could try setting an absolute path for the output file.

Oh I see. Thank you very much Dr. Sommer.

Regards,
Daniel

Sent from Gmail for Android

--
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.
For more options, visit https://groups.google.com/d/optout.

Raunak Gupta

unread,
Jul 8, 2015, 9:16:38 AM7/8/15
to omn...@googlegroups.com
Dear Dr. Sommers,

I was also facing the same problem so I tried both of your methods. Good part is I am able to get the output file but it contains only the starting comment section shown below. Please assist.

<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Mi 08 Jul 2015 14:57:38 CEST by SUMO gui Version 0.22.0
<?xml version="1.0" encoding="UTF-8"?>

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumo-gui.exeConfiguration.xsd">

    <input>
        <net-file value="LuSTScenario.net.xml"/>
        <route-files value="Lust.rou.xml"/>
        <additional-files value="LuSTScenario.poly.xml,lanedump.xml"/>
    </input>

    <output>
        <save-state.prefix value="state"/>
    </output>

    <time>
        <begin value="0"/>
        <end value="100"/>
        <step-length value="0.1"/>
    </time>

    <emissions>
        <phemlight-path value="./PHEMlight/"/>
    </emissions>

    <traci_server>
        <remote-port value="48453"/>
    </traci_server>

    <random_number>
        <random value="false"/>
        <seed value="0"/>
    </random_number>

</configuration>


Best Regards
Raunak
Reply all
Reply to author
Forward
0 new messages