Last-mile delivery—the process of moving items from warehouses or stores to consumers’ homes—is a challenge for retailers. It’s expensive, error-prone and not responsive enough to effectively accommodate on-demand delivery of items purchased online. To address these problems, online retailers and others are turning to robots.