Example showing the functionality of CollisionGraphRoadModel

AGV example

This is an animation of the autonomous guided vehicles example.

In this example the AGVs are moving randomly between locations. The model ensures that vehicles do not drive into each other, and the warehouse layout with only one-way roads ensures that deadlock situations are not possible. The code in this example can be modified to include a more complicated (and realistic) graph where deadlock situations are possible, look for this line:

 RoadModelBuilders.dynamicGraph(GraphCreator.createSimpleGraph())

Replace it with:

 RoadModelBuilders.dynamicGraph(GraphCreator.createGraph())

View source