Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Performing simulation for sumo when time step = 20s via traci4matlab

Dear Lawrence. 

traci.simulationStep simulates until the specified time step given in milliseconds. Therefore, your command should look like this:

traci.simulationStep(20000*t);

Best Regards.

2017-09-24 11:00 GMT-05:00 <sumo-user-request@xxxxxxxxxxx>:
Send sumo-user mailing list submissions to
        sumo-user@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/sumo-user
or, via email, send a message with subject or body 'help' to
        sumo-user-request@xxxxxxxxxxx

You can reach the person managing the list at
        sumo-user-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sumo-user digest..."


Today's Topics:

   1. Performing simulation for sumo when time step = 20s via
      traci4matlab (Lawrence Soon via sumo-user)


----------------------------------------------------------------------

Message: 1
Date: Sun, 24 Sep 2017 14:05:46 +0000
From: Lawrence Soon via sumo-user <sumo-user@lists.sourceforge.net>
To: "sumo-user@lists.sourceforge.net"
        <sumo-user@lists.sourceforge.net>
Subject: [sumo-user] Performing simulation for sumo when time step =
        20s via traci4matlab
Message-ID:
        <CY4PR14MB181670F9A32286F7BB6A12F9D9650@CY4PR14MB1816.namprd14.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

Hi all,


I tried to perform traci simulation in every 20 seconds from 1s to 1001s via traci4matlab using the below codes in MATLAB , yet it wont work, the sumo simulation ends at 0s (not even started). I wish to run my code at 1s, 21s, 41s, 61s, ..., 1001s in MATLAB (only for codes), bu in SUMO, the simulation time to run per second basis in sumo. In other words, the SUMO runs every second, but I m collecting the data via my MATLAB codes in even 20 seconds.


How to make the code works?


for t=1:50      %Loop 50 times for ever 20 seconds
     traci.simulationStep(20);  %set timestep = 20s

     <something else>
end
traci.close();

Thank you

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


------------------------------

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


End of sumo-user Digest, Vol 3, Issue 42
****************************************



--
Andres Felipe Acosta Gil, M.Sc.
Software Developer
Universidad Nacional de Colombia - Medellín
Facultad de Minas
Tel: +57 (4) 4255092
Institutional e-mail: afacostag@xxxxxxxxxxx



Back to the top