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

2024-02-29 Thread Ruud van Gaal via sumo-user
Hi Milad, The vector strings are directly command line arguments passed to 'sumo.exe' or 'sumo-gui.exe'. See https://sumo.dlr.de/docs/Basics/Using_the_Command_Line_Applications.html#setting_options_on_the_command_line So you need a file called 'net.net.xml' in your current directory. Or if you hav

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

2024-02-28 Thread Ruud van Gaal via sumo-user
Here is something that was still in my code: * auto r = Simulation::start({"sumo", "-c", "main.sumocfg"}, -1, 60, "default", true);* So you'll need the 'main.sumocfg' file in your current directory. The code I actually use (the above does compile but I haven't test it) is something like this:

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

2024-02-28 Thread Milad Sasha via sumo-user
Thank you very much for your answer. I think I am wrong with Fstring.please forget about it. Instead, Could please kindly fill the red arguments with an imaginary example: Simulation::start({"sumo","-n", "net.net.xml"}); I have become puzzled with the arguments and what to put instead of “sumo” a

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

2024-02-28 Thread Ruud van Gaal via sumo-user
Hi Milad, FString may not be compatible. Look at this piece of code on how to make a std::string out of it: *FString test = "MyTest";std::string test2 = std::string(TCHAR_TO_UTF8(*test));* Cheers, Ruud On Wed, Feb 28, 2024 at 8:29 AM Mirko Barthauer via sumo-user < sumo-user@eclipse.org> wro

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

[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