Skip to content

Commit

Permalink
[Attachment] Fixed deletion of constraint issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanBassiouny committed May 23, 2024
1 parent 1e45c7c commit 0fb8ef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pycram/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def remove_constraint_with_link(self, child_link: 'Link') -> None:
"""
self.world.remove_constraint(self.constraint_ids[child_link])
del self.constraint_ids[child_link]
del child_link.constraint_ids[self]
if self in child_link.constraint_ids.keys():
del child_link.constraint_ids[self]

@property
def is_root(self) -> bool:
Expand Down

0 comments on commit 0fb8ef1

Please sign in to comment.