Closed jakobaxelsson closed 11 months ago
This is possibly related to the world model of the agent. It is the world model that is used for calculating the precondition, and in the case where the two vehicles are trying to move into a node from opposite directions, they will be two steps away. Hence, they are not within visible range. and the preconditions will be true. (If, on the other hand, they come from orthogonal directions, they are within visible range, and will detect each other.)
Two possible alternatives exist to solve this:
The second option is really just about setting the value of the parameter perception_range to 2 instead of 1, so it is simpler. It also makes more sense logically, since it does actually not physically prevent accidents from happening.
In the relatively rare case where an agent wishes to enter a destination where another agent is already present, a collision can occur, which then raises an exception. This indicates two kinds of problems: