Re: [sumo-user] I can’t set libsumo library

2024-02-27 Thread Mirko Barthauer via sumo-user
Dear Milad,
 
what exactly does not work or what is the error message when you try to run 
the code? Btw libsumo works with normal std::string values, not sure what 
happens if you use Unreal FString.
 
Best regards
Mirko
 
 
 
-Original-Nachricht-
Betreff: I can’t set libsumo library
Datum: 2024-02-28T01:44:19+0100
Von: "Milad Sasha" 
An: "Mirko Barthauer" , "sumo-user@eclipse.org" 

 
 
 
Good morning dear Mirko Barthauer,
 
I hope you are well. I tried to include libsumo header in .h and .cpp of my 
visual studio project.
there is an error in this line of the example code:
Simulation::start({"sumo","-n", "net.net.xml"});
 
Do I need to give the path for sumogui.exe and the path to my network.xml 
like this:
FString SumoExecutablePath = "C:\\path\\to\\sumo.exe"; FString 
NetworkFilePath = "C:\\path\\to\\your\\network.net.xml";
Simulation::start({SumoExecutablePath, "-n", NetworkFilePath});
 
Actually, I cannot start the simulation since I cannot run the mentioned 
line of code. Could you please help me with this?
If there is no need to address "sumogui.exe" file and my network please let 
me know. Thank you so much in advance.
 
Best Regards,
Milad
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] I can’t set libsumo library

2024-02-27 Thread Milad Sasha via sumo-user
Good morning dear Mirko Barthauer,


I hope you are well. I tried to include libsumo header in .h and .cpp of my
visual studio project.

there is an error in this line of the example code:

Simulation::start({"sumo","-n", "net.net.xml"});


Do I need to give the path for sumogui.exe and the path to my network.xml
like this:

FString SumoExecutablePath = "C:\\path\\to\\sumo.exe"; FString
NetworkFilePath = "C:\\path\\to\\your\\network.net.xml";

Simulation::start({SumoExecutablePath, "-n", NetworkFilePath});


Actually, I cannot start the simulation since I cannot run the mentioned
line of code. Could you please help me with this?

If there is no need to address "sumogui.exe" file and my network please let
me know. Thank you so much in advance.


Best Regards,

Milad
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] vType attributes vs. vClass defaults

2024-02-27 Thread Jakob Erdmann via sumo-user
Yes.

Am Di., 27. Feb. 2024 um 16:29 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> thanks. Another related question: if I don't specify vClass when
> defining a vType, "passenger" class will be automatically assigned to
> it. Am I understand this correctly?
>
> On Tue, Feb 27, 2024 at 2:50 PM Jakob Erdmann via sumo-user
>  wrote:
> >
> > No. user-defined attributes always take precedence.
> >
> > Am Di., 27. Feb. 2024 um 14:02 Uhr schrieb Sasan Amini via sumo-user <
> sumo-user@eclipse.org>:
> >>
> >> Dear all,
> >>
> >> I have a question about vehicle type/class definition. If I define a
> vType as:
> >>  >> speedFactor="0.90" emissionClass="PHEMlight/PC_G_EU4"
> >> vClass="passenger"/>
> >> would the attributes such as minGap and length etc. be overwritten by
> >> the default ones from vClass=passenger?
> >>
> >> Best,
> >> Sasan
> >> ___
> >> sumo-user mailing list
> >> sumo-user@eclipse.org
> >> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> >
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org
> > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] vType attributes vs. vClass defaults

2024-02-27 Thread Sasan Amini via sumo-user
thanks. Another related question: if I don't specify vClass when
defining a vType, "passenger" class will be automatically assigned to
it. Am I understand this correctly?

On Tue, Feb 27, 2024 at 2:50 PM Jakob Erdmann via sumo-user
 wrote:
>
> No. user-defined attributes always take precedence.
>
> Am Di., 27. Feb. 2024 um 14:02 Uhr schrieb Sasan Amini via sumo-user 
> :
>>
>> Dear all,
>>
>> I have a question about vehicle type/class definition. If I define a vType 
>> as:
>> > speedFactor="0.90" emissionClass="PHEMlight/PC_G_EU4"
>> vClass="passenger"/>
>> would the attributes such as minGap and length etc. be overwritten by
>> the default ones from vClass=passenger?
>>
>> Best,
>> Sasan
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit 
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] vType attributes vs. vClass defaults

2024-02-27 Thread Jakob Erdmann via sumo-user
No. user-defined attributes always take precedence.

Am Di., 27. Feb. 2024 um 14:02 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> I have a question about vehicle type/class definition. If I define a vType
> as:
>  speedFactor="0.90" emissionClass="PHEMlight/PC_G_EU4"
> vClass="passenger"/>
> would the attributes such as minGap and length etc. be overwritten by
> the default ones from vClass=passenger?
>
> Best,
> Sasan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] vType attributes vs. vClass defaults

2024-02-27 Thread Sasan Amini via sumo-user
Dear all,

I have a question about vehicle type/class definition. If I define a vType as:

would the attributes such as minGap and length etc. be overwritten by
the default ones from vClass=passenger?

Best,
Sasan
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Regarding rerouting time using traci

2024-02-27 Thread Rohan Verma via sumo-user
Dear Jakob,
Apologies, as I did not explain my scenario correctly. I have two flows in
my scenario: vehicles travelling from one origin edge to one destination
edge, while the other has a stop in between. The first flow reroutes
automatically and perfectly; however, the second one
reroutes multiple times. I have explicitly created a rerouter file to
reroute among various parking stops if the initial parking stop is not
empty. Since the vehicles keep rerouting and circling around the block to
find an empty parking stop, this creates a kind of jam where the vehicles
which have already completed their stops are unable to leave the parking
stop due to the jam. Hence, the remaining vehicles keep rerouting multiple
times. I was trying to obtain the number of times vehicles were rerouted or
time spent while searching to assign them some other stop away from the
current location. However, I am unable to obtain "reroutenumber" or
"parkingsearchtime" while the simulation is running. Both these attributes
are obtainable after the simulation has ended but not during the simulation.
Kindly suggest if this can be done or if there is another way to do this or
any workaround,
Any help would be appreciated.
Thanks and regards,
Rohan

On Mon, Feb 26, 2024 at 7:55 PM Jakob Erdmann via sumo-user <
sumo-user@eclipse.org> wrote:

> Are you setting any options for automatic routing already (
> https://sumo.dlr.de/docs/Demand/Automatic_Routing.html) ?
> The only reason for why this would happen with default options is a
> massive jam lasting a whole day. By default, trips that cannot enter the
> network are rerouted once per minute.
> You can change this via option --device.rerouting.pre-period (either given
> to traci.start or in the .sumocfg file)
>
>
> Am Sa., 24. Feb. 2024 um 11:23 Uhr schrieb Rohan Verma via sumo-user <
> sumo-user@eclipse.org>:
>
>> Dear community,
>> In my simulation, the vehicles are rerouting up to 1000-2000 times. I
>> wish to limit this number of reroutes. I planned on doing it using TraCI.
>> However, I am unable to find the correct command. Kindly suggest if this
>> can be done or if there is another way to do this or any workaround,
>> Any help would be appreciated.
>> Thanks and regards,
>> Rohan
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user