MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / find_joint_kin_chain

Function find_joint_kin_chain

util/smplx/smplx/utils.py:87–93  ·  view source on GitHub ↗
(joint_id, kinematic_tree)

Source from the content-addressed store, hash-verified

85
86
87def find_joint_kin_chain(joint_id, kinematic_tree):
88 kin_chain = []
89 curr_idx = joint_id
90 while curr_idx != -1:
91 kin_chain.append(curr_idx)
92 curr_idx = kinematic_tree[curr_idx]
93 return kin_chain
94
95
96def to_tensor(array: Union[Array, Tensor], dtype=torch.float32) -> Tensor:

Callers 5

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected