Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] [EXTERNAL] Re: Traci passenger pickup and drop off

I see. That works. Thank you so much!

On Thu, Nov 7, 2024 at 4:04 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
The problem with your drop-off lies in the mismatch between the configured stop position of the vehicle (middle of the edge) and the desired end point of the ride (end of the edge).
Consider the case of a single edge with multiple stops on it to understand why this must be checked. You can either
- increase the tolerance by setting sumo option     <ride.stop-tolerance value="20"/> in your sumocfg
- change the stop position of the vehicle (i.e stop_pos2 = net.getEdge(do_edge).getLength() - 5)
- change the arrival position of the person. This is currently not possible with traci.person.appendDrivingStage (unless you define a busStop or parkingArea and use the stopID argument) but it can be accomplished with the more general person.appendStage function

regards,
Jakob

Am Mi., 6. Nov. 2024 um 15:59 Uhr schrieb Rachael Yuan <yyuan7@xxxxxxxxxxxxx>:
I see. Thank you for your information!

On Wed, Nov 6, 2024 at 3:40 AM Jakob Erdmann via sumo-user <sumo-user@xxxxxxxxxxx> wrote:
[Caution: Email from External Sender. Do not click or open links or attachments unless you know this sender.]
 
Also, if you do want to query vehicles after arrival (for a limited time), you can do so by setting option --keep-after-arrival TIME

Am Mi., 6. Nov. 2024 um 09:34 Uhr schrieb Mirko Barthauer via sumo-user <sumo-user@xxxxxxxxxxx>:

Hi Rachael,

 

there is a small problem with your TraCI script which makes it crash when the vehicle has left the simulation (you cannot query values for vehicles which do not exist anymore). Other than that I cannot reproduce the problem using SUMO development version. Do you use the latest release?

 

Best regards,

Mirko

 

 

 

 

-----Original-Nachricht-----

Betreff: [sumo-user] Traci passenger pickup and drop off

Datum: 2024-11-05T22:36:01+0100

Von: "Rachael Yuan via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>

 

 

 

Hello,
 
I am trying to use Traci to simulate the passenger pickup and drop off behavior. The passenger first walked to the pickup location and could be picked up by the vehicle. However, when the vehicle arrived and stopped at the drop off location, the passenger could not be dropped off. A sample network and code was attached, could you please take a look and let me know what might be the problem?
 
Thanks and regards,
 
Rachael

 


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top