Skip to content

Commit

Permalink
Fix target check in Model class
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulero committed Mar 8, 2024
1 parent 6c1b74d commit 72a24b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adam/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_joints_chain(self, root: str, target: str) -> List[Joint]:
List[Joint]: the list of the joints
"""

if target not in list(self.links) and target not in list(self.tree.graph):
if target not in list(self.frames) and target not in list(self.tree.graph):
raise ValueError(f"{target} is not not in the robot model.")

if target == root:
Expand Down

0 comments on commit 72a24b1

Please sign in to comment.