Is it OK to torture a robot?

Everything is an engineering problem.