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). You can find more information about taxi device
here.
Regards,
Giuliana
Von: sumo-user <sumo-user-bounces@xxxxxxxxxxx> Im Auftrag von
Rachael Yuan
Gesendet: Dienstag, 30. März 2021 05:13
An: sumo-user@xxxxxxxxxxx
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?