Vehicle ids are strings so "1" is correct in principle. However, the call will only succeed once the vehicle has been loaded from the route file (or added via traci.vehicle.add). You can safely catch TraCIException and try again later or you can check for vehicle existence using traci.vehicle.getIDList() or traci.simulation.getDepartedIDList().
Am Mi., 6. Mai 2020 um 22:02 Uhr schrieb Reza <[email protected]>: > Thanks. I was wondering to know how I should write vehicle id. When I > write a > number as veh id, it gives me the following errors. > > <http://sumo-user-mailing-list.90755.n8.nabble.com/file/t374/Capture.png> > <http://sumo-user-mailing-list.90755.n8.nabble.com/file/t374/Capture1.png> > > <http://sumo-user-mailing-list.90755.n8.nabble.com/file/t374/Capture2.png> > > <http://sumo-user-mailing-list.90755.n8.nabble.com/file/t374/Capture3.png> > > > Regards, > Reza. > > > > -- > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
