Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Adding a new vehicle

Hello,
I want to add vehicles randomly in the simulation. 
I try traci.route.add and then traci.vehicle.add
But when I run the simulation, an error message appears as follows:
traci.exceptions.TraCIException: Invalid route 'i_r1' for vehicle 'i_v1'

I have confirmed that the route is error-free because even if there is only one edge left on the route, there is still this problem

What can I solve?

Many thanks,
Yu Wang

Back to the top