---------- Forwarded message ----------
From: Emmanuel Katende Dinanga <[email protected]>
Date: 2015-09-08 0:23 GMT-03:00
Subject: Problems with queryAddVehicle
To: "[email protected]" <[email protected]
>


Hi every body,
I'm using TraCI4j to control a simulation on SUMO.

When i try to add a new vehicle in the simulation using:

Route edges = sim.getRouteRepository().getByID("WC_CE");
VehicleType amb = sim.getVehicleTypeRepository().getByID(vType);
sim.queryAddVehicle().setVehicleData("amb0", amb, edges, 0, 0, 0, 0);
sim.queryAddVehicle().run();

I get this exception:

Caused by: java.lang.NullPointerException
at
it.polito.appeal.traci.AddVehicleQuery.writeRequestTo(AddVehicleQuery.java:101)
at
it.polito.appeal.traci.ChangeStateQuery.getRequests(ChangeStateQuery.java:68)
at it.polito.appeal.traci.MultiQuery.run(MultiQuery.java:97)
at it.polito.appeal.traci.ChangeStateQuery.run(ChangeStateQuery.java:94)

I mad a look to every posts about this stuff, but nothing helps me.
I have already added the departureTime manually as shown at:
https://github.com/egueli/TraCI4J/commit/46d929cf3575fd68ad0199a1ff1ba73db6ac0d63
But the exception still appears.

Any help?

Thanks
Emmanuel
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to