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 4dadea9 commit 5a90655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions mplib/pymp/kinematics/pinocchio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class PinocchioModel:
frame of the link
:return: 6 x n jacobian of the link
"""
def get_adjacent_links(self) -> set[tuple[str, str]]: ...
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 5a90655

Please sign in to comment.