Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » Eclipse Sumo » traci.vehicletype.setVehicleClass
traci.vehicletype.setVehicleClass [message #1853477] Mon, 04 July 2022 12:01
Miao  Wang is currently offline Miao WangFriend
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
Previous Topic:simulation
Next Topic:Set checkpoint lanes in a highway for a veh flow in Eclipse Sumo
Goto Forum:
  


Current Time: Sun Oct 06 10:35:32 GMT 2024

Powered by FUDForum. Page generated in 0.02570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top