diff --git a/src/jaxsim/parsers/kinematic_graph.py b/src/jaxsim/parsers/kinematic_graph.py index c2ca9a6a6..903911299 100644 --- a/src/jaxsim/parsers/kinematic_graph.py +++ b/src/jaxsim/parsers/kinematic_graph.py @@ -445,7 +445,7 @@ def reduce(self, considered_joints: Sequence[str]) -> KinematicGraph: msg.format( link_to_remove.name, self.joints_connection_dict[ - (parent_of_link_to_remove.name, link_to_remove.name) + parent_of_link_to_remove.name, link_to_remove.name ].name, parent_of_link_to_remove.name, ) @@ -853,7 +853,7 @@ def transform(self, name: str) -> npt.NDArray: # Get the joint between the link and its parent. parent_joint = self.graph.joints_connection_dict[ - (link.parent.name, link.name) + link.parent.name, link.name ] # Get the transform of the parent joint.