Skip to content

Commit

Permalink
[WorldObject] Code and doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigul committed Jun 28, 2024
1 parent 0c5e2b7 commit 17216c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pycram/world_concepts/world_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,8 @@ def set_attachments(self, attachments: Dict[Object, Attachment]) -> None:
"""
for obj, attachment in attachments.items():
if self.world.is_prospection_world and not obj.world.is_prospection_world:
# The object mapping is directly used since this function can be called from the world sync thread which
# would cause a deadlock when calling get_prospection_object_for_object.
# Furthermore, all attached objects are spawned beforehand so no keyError should occur
# obj = self.world.world_sync.object_mapping[obj]
# In case this object is in the prospection world and the other object is not, the attachment will no
# be set.
continue
if obj in self.attachments:
if self.attachments[obj] != attachment:
Expand Down

0 comments on commit 17216c5

Please sign in to comment.