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> wrote: > 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" <milad.sash...@gmail.com> > > An: "Mirko Barthauer" <m.bartha...@t-online.de>, "sumo-user@eclipse.org" < > 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 mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user