The effort to give robots AI brains is revealing big practical challenges—and bigger ethical concerns