Skip to content

Commit

Permalink
[MergeBoundingBox] check if robot using subclass not is_a.
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanBassiouny committed Jan 17, 2025
1 parent 4b5ba35 commit c1cc4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pycram/world_concepts/world_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c1cc4ab

Please sign in to comment.