[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
|
Re: [sumo-user] Passengers Do Not Get Off at the Bus Stop
|
Hi,
I had a second look at your example. Actually it would work as
well only indicating the edge but...
- every stop needs to have defined its start and end position,
independently whether it's a bus stop or only defined by
edge/lane
- by default the start and end positions are very close to the
edge end (see doc)
- in order to work for any position, you would need to modify
the arrivalPos of the driving stage to match the bus stop -
should be doable using by first adding the stage, then getting
the Stage object via getStage(),
modify its attribute(s) and set it again using replaceStage()
Up to you whether this makes anything better...
Mirko
Am 24.07.2026 um 05:53 schrieb Shamla
Hom:
Hi Mirko,
Thanks it works, but I have a
follow up question.
In the simulation if for example i have 2 target edges that
has a bus stop: (E1 -> busstop1 and E2 -> busstop2).
Since every passenger is assigned a destination randomly by
the traci script, the toEdge and corresponding StopID has to
be assigned in the appendDrivingStage function correct?
I am wondering since we've
assigned the toEdge parameter, why do we need to assign the
StopID since we've also assign the lines parameter
that follows a route, which in this simulation, stops at each
bus stop?
Thank you
Hi,
it works for me if you provide the target stop ID
as a hint as well (optional parameter stopID of
traci.person.appendDrivingStage, see reference).
Best regards,
Mirko
Am
23.07.2026 um 11:16 schrieb Shamla Hom via
sumo-user:
Hi all,
I am creating a simulation that
tries to randomly assign passenger destination.
The simulation 3 possible destinations. In the
simulation, the passengers will walk to the bus
station and take the bus to the edge
destinations. I have put a bus stop at each of
the edges and made sure they stop at each bus
stops. I use traci to assign the destinations,
add passengers, use appendWalking, use
appendDriving, and use appendWalking again to
set each passengers journey.
The main problem is that the
passengers do not get off the bus when a bus
stops at a bus stop, the passengers stay on the
bus until they reach the end of the route and
teleport to the destination edges. What could be
the problem?
I've provided the files for
reference
Thank you
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user