The robots have been built to collect samples quickly while lowering the risk of cross-infection between people.