Scientists have developed software to ensure that if a robot falls, it can get itself back up, meaning future military robots will be less reliant on their soldier handlers.