Skip to content

Commit

Permalink
Update doc & stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
KolinGuo committed Apr 4, 2024
1 parent 83df166 commit eee6421
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mplib/pymp/kinematics/pinocchio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ class PinocchioModel:
frame of the link
:return: 6 x n jacobian of the link
"""
def get_adjacent_links(self) -> set[tuple[str, str]]:
"""
Get the all adjacent link names.
:return: adjacent link names as a set of pairs of strings
"""
def get_chain_joint_index(self, end_effector: str) -> list[int]:
"""
Get the joint indices of the joints in the chain from the root to the given
Expand Down
6 changes: 6 additions & 0 deletions pybind/docstring/kinematics/pinocchio/pinocchio_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ Constructs a PinocchioModel from URDF string
:param verbose: print debug information. Default: ``False``.
:return: a unique_ptr to PinocchioModel)doc";

static const char *__doc_mplib_kinematics_pinocchio_PinocchioModelTpl_getAdjacentLinks =
R"doc(
Get the all adjacent link names.

:return: adjacent link names as a set of pairs of strings)doc";

static const char *__doc_mplib_kinematics_pinocchio_PinocchioModelTpl_getChainJointIndex =
R"doc(
Get the joint indices of the joints in the chain from the root to the given
Expand Down

0 comments on commit eee6421

Please sign in to comment.