Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Not sure I post question in right place(change sumo v_type problem)

Hello:

Hope this email finds you well
Here is my question:

I know we can use traci.vehicle.setType("a new type") to change the car-following mode, but is there any way to preserve the same ID name
with different car-follow-type.

For example, in the route file:
<vType id="AudiTT" maxSpeed="15.00" carFollowModel="IDM"/> <vType id="AudiA2" maxSpeed="15.00" carFollowModel="Krauss"/>
<vehicle id="vehicle_0" type="AudiTT" depart="0.00" route="route_0" />
 
For example, in the route file: I have a vtype "AudiTT" with IDM model and Audio A2 with Krauss model
when I change the type for "vehicle_0" the whole thing has been changed
is there a way to assign "Krauss" to Audi TT with Traci python in runtime?

Best regards

Jin

Back to the top