The invention regards a robotic gardening device comprising driving means for propelling the robotic gardening device, a working tool for performing dedicated gardening work and a controlling unit for controlling said driving means and the working tool and a method for controlling the same. The robotic gardening device further comprises at least one environment sensor generating a signal indicative of objects in the environment of the robotic gardening device, a computing unit for classifying these objects, wherein the classes comprise at least two different classes for objects being determined to be humans. The computing unit is configured to control the driving means and/or the working device according to a predetermined behavior associated with the respective objects class.