The research paves the way for robots to work intelligently alongside humans in ways that are currently familiar only through science fiction films, scientists said.
The robots could play important roles in crisis situations such as search and rescue missions, or operate in environments where it would be dangerous for humans to work.
Using simple flying robots, called Quadcopters, researchers from the University of Sheffield's Department of Automatic Control and Systems Engineering (ACSE), created software that enables the robot to learn about its surroundings using a forward facing camera mounted at the front of the machine.
Other sensors pick up barometric and ultrasonic data, which give the robot additional clues about its environment.
More From This Section
All this information is fed into autopilot software to allow the robot to navigate safely, but also to learn about the objects nearby and navigate to specific items.
"We are used to the robots of science fiction films being able to act independently, recognise objects and individuals and make decisions," said Professor Sandor Veres, who is leading the research.
"As we develop robots for use in space or to send into nuclear environments - places where humans cannot easily go - the goal will be for them to understand their surroundings and make decisions based on that understanding," Veres said.
Another key task for these robots is to be able to interact and co-operate with each other without overloading communications networks - a vital ability in emergency situations where networks will already be overloaded.
The robots start off flying at the same altitude and then need to collaborate to work out which robot would fly higher and which would fly lower so they are able to pass.
"The learning process the robots use here is similar to when two people meet in the street and need to get round each other," said ACSE research fellow, Dr Jonathan Aitken.
"They will simultaneously go to their left or right until they coordinate and avoid collision," Aitken said.