Operating a surgical robot