Fix add_objects assumption that a robot has been added.