Skip to content

setStop does not work with pos =0 and stopEdge = EXIT_EDGE #12862

@jiachin1995

Description

@jiachin1995

Context:
I want to stop the vehicle at the beginning of exit edge.
Issue:
Vehicle gets permanently stuck after calling the following code, setStop:
traci.vehicle.setStop(vehicle, edgeID = EXIT_EDGE , duration = 10 , pos = 0)

This only affects exit edge. The above code works if the stopping edge is elsewhere on the route.

Workaround:
Just use pos = 1 instead of pos = 0.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions