Thanks for your suggestion, Jakob!
In my case, the major change is in car-following parameters (e.g. tau). So
I figured out that I can simply write a traci code to check the leader
type, and setvType accordingly.

Best,
Di

Jakob Erdmann <namdre.s...@gmail.com> 于2023年5月7日周日 12:03写道:

> Check out Simpla which switches vTypes based on the leader vehicle:
> https://sumo.dlr.de/docs/Simpla.html
> If Simpla doesn't fit your use case, you can achieve the same affect in
> your own TraCI code. Simply define enough types in advance and switch them
> at runtime.
>
>
> Am So., 7. Mai 2023 um 19:54 Uhr schrieb Chen Di <dichen...@gmail.com>:
>
>> Hi,
>>
>> I have a mixed traffic scenario (say mixed of AV and HV) and would like
>> to define vehicle types that differ by the types of leader vehicles. In
>> other words, I need 4 vehicle types in this case: vType for HV when
>> following other HVs, vType for HV when following AVs; and vice versa.
>>
>> I am wondering whether sumo can do this. If not, are there any hints on
>> how to achieve this?
>>
>> Thanks,
>> Cindy
>>
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to