Provided is a robot device and a method of controlling same. The robot device includes: at least one memory storing at least one instruction; a sensor configured to detect an environment of the robot device and output detection data; and at least one processor configured to execute the at least one…