Robots, while very much imperfect, are moving up in the world. Labor shortages and rising wage costs are breathing life into a new generation of robots that can handle basic tasks, from delivering pizza to sorting prescription drugs, fixing a tire or providing room service in a hotel.