A lightweight fence prevents and protects both the robotic lawn mower and the garden. The fence ensures that the robot does not accidentally fall into, for example, a swimming pool or damage decorations in the yard. The shape of the fence can be adjusted.