Hello,
I am currently working with persons in SUMO and I was wondering whether the following workflow is supported and recommended.
I would like to control a person entirely via TraCI, without letting SUMO automatically execute a predefined XML plan.
More specifically, my intention is that the person:
- The person should not move at all unless a TraCI command is sent
- Each movement stage (ride) should start only after I explicitly send a TraCI command
- When the person boards a vehicle or leaves a vehicle, I want to detect this immediately in TraCI (to trigger a notification / callback in my code)
Example scenario I want to control dynamically:
<person id="p_16" depart="0">
<ride from="202761590" to="484592976" lines="ANY"/>
<ride to="250047662#1" lines="ANY"/>
<stop edge="250047662#1" until="3600"/>
</person>
Would this kind of stage-by-stage control and boarding/alighting detection be possible with TraCI, and if so, what would be the recommended approach?
Thank you very much for your time and guidance.
Best regards,
Aslan