[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] libsumo GUI
|
I can use sumo-gui in the same repository. But, only libsumo::Simulation::load and libsumo::Simulation::step is not launching GUI.
Just wanted to add that I am trying this on Ubuntu 18.04.6.
thanks
I have tried the below test, but no GUI is launching. Definitely, there is something missing. Do we need to enable flags related to FOX?
#include <iostream>
#define HAVE_LIBSUMOGUI // if you are on Windows or have libsumo compiled yourself without GUI you should remove this line
#include <libsumo/libsumo.h>
using namespace libsumo;
int main(int argc, char* argv[]) {
Simulation::load({"-c", "test.sumocfg"});
for (int i = 0; i < 5; i++) {
Simulation::step();
}
Simulation::close();
}
Still I cannot see any GUI running. Is there any other #define to be enabled too?
Thanks
Thanks, Jakob.
I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d.
HAVE_LIBSUMOGUI is already defined in the code. On using the following commands, I cannot see any GUI being launched.
libsumo::Simulation::load(sumo_options);
libsumo::Simulation::step();
What Else do I need to change to view the simulation?
Thanks,
Mahima