[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] I can’t set libsumo library
|
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.sasha70@xxxxxxxxx>
An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>, "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>
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