Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Generate vehicle according to simulation data
  • From: <Maria.Armellini@xxxxxx>
  • Date: Tue, 13 Oct 2020 19:18:39 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:pteQIRZWKNqc0T8+cdiQz/z/LSx+4OfEezUN459isYplN5qZr8q4bnLW6fgltlLVR4KTs6sC17OJ9f2xEjVasd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLhi6twXcu80ZjYd/NKo8yQbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrRyhuRJx3pLUbo+WOvpwfKzdfM8VSmVaU8lLSyBBAJmxY5cTA+YfO+tTsonzp0EJrRu7HQShA+ThxSVShn/3x6I2yfgsERvD3AM+G9IOtHXUrNP0NKoJTO+1yLPIwS/eYPxIwDrw7pXDfR89r/+WR71wbdbRxlc1FwPDllidq4/oMi+V2+kDr2WW4OpuWOyvhmAptwx8pjyiy9oyhoXViY8Y1F7K+CF2zYorONC1R092bNG6HZdMtSyXOJd7T8U/SG9mvyY6z6cJuZ+9fCUS1ZsnwwTfZ+aafIeW5B/oSeWfIS9giX54ZL6znQu+/Euvx+HmS8W53lVHojBbntXSrnwByh7e5tadRvdj40utwyuD2gLS5+1ePEw5k7fQJYQ7zb4qjJUTtFzOHirxmErrkqCbbl4k+u206+T/ZbXmu4OcO5d0ig7gNqQundSyD+o+PAYAUGaV+eSy2rrg80P+WrtGkOM6nKbYv53EP8gbp6i5AxNP0ok58RqwEjOm0M4CkXYaMl1JYBOHj473NFHSOP30EOuzj06xnDpoyP3KJKDtD5vOI3TZjrvtY65x60tGxwoyydBf6YhUCrYEIP/rXUH+rsbYDh4jPACu3+vnEtB92Z0aWWKLA6+ZNqLSvESV6eIrOemAfpIatyjlJ/g/+/HulWM5mUMafaSxxpsXdXW4HvN/L0WEenrjnM0BHHwUsQUiSOzqiUWCUSVNaHqoWKI8/D47W8qaCtKXXZ2oh/mcxyqhNpBdYmFeEV3KFm3nIdaqQfAJPXa3K9Vgm3otT72sT4sg0xCGuAvgjbZqeLmHshYEvI7ugYAmr9bYkgs/oGR5
  • Ironport-sdr: pr1uRswCPJXiNVQmIR6eAjJX7ZWM6hrzCttGlocJi7nwWGYkH9hM8KtGYSAZ9EY7ArZCDq8yx8 /FYvFBdV1i4g==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdagcR4Lz5wKj4mWTIiyD1nfffFTOQBIVZbQ
  • Thread-topic: Generate vehicle according to simulation data

Hi Yushen,

 

I think you can achieve this using TraCi (see https://sumo.dlr.de/docs/TraCI.html).

You could use induction loops and the command “getLastStepVehicleNumber” to check how many vehicles entered within the last simulation step. By checking the vehicle IDs with the command “getLastStepVehicleIDs” you could check how many vehicles with the prefix "A", "B" or "C" entered. See https://sumo.dlr.de/docs/TraCI/Induction_Loop_Value_Retrieval.html and https://sumo.dlr.de/docs/Simulation/Output/Induction_Loops_Detectors_(E1).html

This way you can check if the desired weight was reached and then generate a vehicle using the command "add". See https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html

 

Regards,

Giuliana

 

Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> Im Auftrag von #LONG YUSHEN#
Gesendet: Montag, 12. Oktober 2020 10:25
An: sumo-user@xxxxxxxxxxx
Betreff: [sumo-user] Generate vehicle according to simulation data

 

Hi,

 

Does SUMO support the following trip generation mechanism:

 

For a certain edge, say edge #1, every 10 vehicles arriving edge #1, generate 1 vehicle staring from edge #1?

 

A more complicated case is:

 

I have three types of vehicles, with prefix ‘A’, ‘B’ and ‘C’. Different prefix has different weight, say ‘A’ has 2, ‘B’ has 3 and ‘C’ has 5. Is it possible for a certain edge to generate 1 vehicle for every 20 weight arriving this edge?

 

Thanks for your attention.

 

Best regards,

Yushen

**Disclaimer** The sender of this email does not represent Nanyang Technological University and this email does not express the views or opinions of the University.


Back to the top