Fence following by an autonomous mobile robot including various intersections