Hi Rachael,

Have you previously defined a ride element for both persons with that vehicle? 
If so, when the vehicle arrives at the stop, then both persons will board the 
vehicle.
For example, if you have defined the persons in the input file as:
<person id="A" depart="0">
    <walk edges="a b c"/>
    <ride from="c" to="d" lines="vehicle1"/>
</person>
<person id="B" depart="0">
    <walk edges="a b c"/>
    <ride from="c" to="h" lines="vehicle1"/>
</person>
Then when vehicle1 arrives at edge c, both persons are picked up.

If you want to simulate taxis or DRT, maybe the taxi device would be 
interesting for you. But you will need a new version of sumo for that, I would 
recommend to use the last development version 
(link<https://sumo.dlr.de/docs/Downloads.php#nightly_snapshots>). You can find 
more information about taxi device 
here<https://sumo.dlr.de/docs/Simulation/Taxi.html#traci>.

Regards,
Giuliana

Von: sumo-user <[email protected]> Im Auftrag von Rachael Yuan
Gesendet: Dienstag, 30. März 2021 05:13
An: [email protected]
Betreff: [sumo-user] Traci vehicle pick up passenger

Hi,

I am using Traci to control the vehicle and the person in SUMO 1.2.0. I let the 
vehicle stop at one edge to pick up the passengers that have already been 
waiting at the same position, is it possible to pick up only one of those 
passengers?

For example, person A and B are waiting at the same position, I used 
"traci.person.appendDrivingSatge" to assign person A a driving stage with 
vehicle A and did nothing with B since I only wanted A to be picked up. 
However, when vehicle A comes to the position, B will also be onboard. I am not 
sure what is wrong, could you please give me some suggestions?

Thank you.
Rachael
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to