diff --git a/src/pycram/world_concepts/world_object.py b/src/pycram/world_concepts/world_object.py index 5fb92d180..34c5edd6d 100644 --- a/src/pycram/world_concepts/world_object.py +++ b/src/pycram/world_concepts/world_object.py @@ -106,7 +106,7 @@ def __init__(self, name: str, concept: Type[PhysicalObject], path: Optional[str] self.description.update_description_from_file(self.path) # if the object is an agent in the belief state - if Robot in self.ontology_concept.is_a and not self.world.is_prospection_world: + if self.is_a_robot and not self.world.is_prospection_world: self._update_world_robot_and_description() self.id = self._spawn_object_and_get_id()