Return the robot close to the starting point before you finish recording the route.
Don't get too close to walls or large obstacles, and try to stay 0.5m - 9m.
Be sure to navigate around walls and stationary obstructions. If the path crosses through a wall, the robot will collide with the wall.
When creating a route down a long hallway, only add a point from one end of the hallway to the other. Adding several points throughout a hallway can confuse the robot during patrol.
Example 1: Route crosses through a wall.
Example 2: Route is too close to the wall.