New technology allows robots to predict consequences of actions