Thank you Jakob. This is a request to the community to please provide any examples of manipulating vtype behavior using TraCI based on some condition. I have a particular problem about controlling the lateral alignment, but an example would help me to write the appropriate code. My problem is explained below.
So, the condition that I want to specify is this: Check the class of the vehicle which is *parallel* to a particular car (ID = "EXT") in the neighboring lane. If the class is a "trailer" then change the lateral alignment of the "EXT" car, otherwise, keep the alignment at the default value. *Parallel *is arbitrary so I want to specify that any part of the neighboring vehicle is within the range equal to length + 5 meters of "EXT" (or any other helpful rule). I have found getLaneIndex(), setLatAlignment(), getLanePosition(), etc. functions in traci module that are helpful. Now I'm trying to use an if else statement to write this rule. But am not successful so far. Any ideas are welcome. Thanks in advance. best regards, *Umair Durrani * Ph.D. Candidate Civil and Environmental Engineering LinkedIn <https://www.linkedin.com/in/durraniu/> On Sun, Jul 15, 2018 at 9:28 AM, Jakob Erdmann <[email protected]> wrote: > Hello, > currently, you can only do this via TraCI by checking the condition > yourself and then setting the alignment parameter or lateral change > explicitly. > regards, > Jakob > > 2018-07-13 17:42 GMT+02:00 Umair Durrani <[email protected]>: > >> Hi, >> >> Is it possible to programmatically change the lateral alignment (and >> other parameters of sublane model) via TraCI using some condition? For >> instance, I want to align the vehicle to the left when overtaking a truck >> but keep it center aligned when overtaking a car. >> >> best regards, >> *Umair Durrani * >> Ph.D. Candidate >> Civil and Environmental Engineering >> LinkedIn <https://www.linkedin.com/in/durraniu/> >> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/sumo-user >> >> > > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
