Skip to content

Traci person value retrieval fails if person does not move #15781

Open
@hoesLu

Description

I inserted a person using traci like this

traci.person.add(personID='my_test_person123', edgeID='464720568#1', pos=0, depart=0) traci.person.appendWalkingStage(personID='my_test_person123', edges='719456133#16', arrivalPos=8, duration=10, speed=3, stopID='su-ligusterweg')

traci.person.appendWaitingStage(personID='my_test_person123', duration=0, stopID='su-ligusterweg') traci.person.appendDrivingStage(personID='my_test_person123', toEdge='464720564#2', lines='454', stopID='su-schlehenhang')

traci.person.appendWaitingStage(personID='my_test_person123', duration=60, description='waiting', stopID='su-schlehenhang')

Later, I want to check where this person currently is. I do so by

traci.person.getLaneID('my_test_person123')

which yields the correct laneID 719456133#16_0 as long as the person moves (walks or travels on board a vehicle). However, once the person stopped I get an empty string. Also the bus stop I assigned to the person does not seem to hold it:

traci.busstop.getPersonIDs('su-ligusterweg')

also yields an empty string. Still, other person values like getEdges, getLanePosition, getPosition, getRoadID are output correctly. Also, the person boards the correct vehicle once it arrives.

Is there a way to check the bus stop (or at least for the laneID) while the person is waiting? Thanks!

SUMO-version: 1.21.0

operating system: Windows 11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions