Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] libsumo simulation start

1. Simulation::start is the only way to actually start a libsumo simulation. Did you try to compile the example given at https://sumo.dlr.de/docs/Libsumo.html#example_code_testcpp ?

2. Libsumo is not compatible with gui simulation at the moment: https://sumo.dlr.de/docs/Libsumo.html#limitations.
However, you can use Libtraci which supports sumo-gui for developing your script and then switch to libsumo for increased speed. The API is the same and you only need to change one line of code:
using namespace libtraci; / using namespace libsumo;

regards,
Jakob




Am Mo., 10. Jan. 2022 um 20:53 Uhr schrieb Mahima <mahima13@xxxxxxxxx>:
error: ‘start’ is not a member of ‘libsumo::Simulation'
On compiling, i get this error.

I want to run the sumo-gui using libsumo.
Please suggest the solution.

On Mon, Jan 10, 2022 at 5:54 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
What is the error message?

Am Mo., 10. Jan. 2022 um 14:11 Uhr schrieb Mahima <mahima13@xxxxxxxxx>:
Hi,
I want to use the following command to start a simulation. 

"libsumo::Simulation::start"

But this gives an error. Any idea what is the alternative way to start the simulation?

Thanks,
Mahima
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top