Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] fix equality removal with actuator removal #594

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ def _remove_joint_actuation(self, part_name):
parent_body = find_parent(self.tendon, fixed)
parent_body.remove(fixed)
break
# remove joint in equality
for equality in self.equality.findall(".//joint"):
# If either joint1 or joint2 is the joint we want to remove
if part_name in equality.get("joint1") or part_name in equality.get("joint2"):
parent_body = find_parent(self.equality, equality)
parent_body.remove(equality)

def _remove_free_joint(self):
# remove freejoint
Expand Down
Loading