How to make the AGV run in a loop?

Just like the pictures show, how can I make the AGV run like this?
Much thanks!

Have you checke the Acadmey for mobile robot tutorials?
If you are using the works library, there is a tutorial on how to define routes.