traci.vehicletype.setVehicleClass [message #1853477] |
Mon, 04 July 2022 12:01 |
Miao Wang Messages: 1 Registered: July 2022 |
Junior Member |
|
|
Hi there,
i met a problem while using traci with the code below:
traci.lane.setDisallowed("e1_1", ["custom1"])
...
if traci.vehicle.getDistance(vehs[id]) > 1000:
traci.vehicletype.setVehicleClass('veh', 'custom2')
the lane "e1_1" is disallowed for the type of vehicle ["custom1"],
after a certain driving distance e.g.1000m, by changing the vehicle type to 'custom2', i would like to see this vehicle change to the lane "e1_1" to overtake the front car, but it doesn't change its driving lane and still follows behind the slow car.
Really appreciate if i could get a hint,
Greets,
Mia
|
|
|
Powered by
FUDForum. Page generated in 0.03062 seconds