Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Export a fragment of the simulation to ns3

Hello,
run
sumo -n srr.net.xml -r srr.rou.xml --save-state.times 58 --save-state.files
state.xml
sumo -n srr.net.xml --load-state state.xml --fcd-output srr.sumo.xml
--begin 0

regards,
Jakob

2017-08-24 22:07 GMT+02:00 Javier Moraga Matoque via sumo-user <
sumo-user@xxxxxxxxxxxxxxxxxxxxx>:

> Hello! I'm trying to export a simple SUMO simulation scenario into ns3
> using the following commands:
>
> $ sumo -n srr.net.xml -r srr.rou.xml --fcd-output srr.sumo.xml
>
> $ SUMO_HOME/tools/traceExporter.py -i srr.sumo.xml
> --ns2mobility-output=srrns2mobilitysumo25ms.tcl
> --ns2config-output=srrns2configsumo25ms.tcl
> --ns2activity-output=srrns2configsumo25ms.tcl -b 58 -e 218
>
> In my ns3 trace I just want to use the timesteps that come from 58 to 218,
> I do this because I need all the vehicles forming a wireless adhoc
> connected scenario since second 30 of the application (timestep 88 in the
> trace file) and keeping that "connection" until 30 seconds before ending
> the simulation (timestep 188).
>
> I can get the correct tracefile for ns3, but the problem is that the first
> timestep listed is, obviously, 58. In my ns3 simulator program I run the
> simulation with a maximum time of 160 (the maximum time needed for the
> simulation), but this means that ns3 simulator will only read SUMO
> tracefile from timestep 58 until 160.
>
> ¿Is there any way I can export my SUMO trace to ns3 by making that fragment
> start from timestep 0 (make 58 be 0 in the exported trace) to 160 (make 218
> be 160 in the exported trace)?
>
> Regards,
> Javier
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user

Back to the top