Skip to content

Commit

Permalink
Add JaxSimModel.frame_names
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed May 22, 2024
1 parent a60b683 commit 8498c1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,16 @@ def link_names(self) -> tuple[str, ...]:

return self.kin_dyn_parameters.link_names

def frame_names(self) -> tuple[str, ...]:
"""
Return the names of the links in the model.
Returns:
The names of the links in the model.
"""

return tuple([frame.name for frame in self.description.get().frames])


# =====================
# Model post-processing
Expand Down

0 comments on commit 8498c1b

Please sign in to comment.