MCPcopy Create free account
hub / github.com/TeleHuman/PBHC / parent_of

Method parent_of

humanoidverse/utils/motion_lib/skeleton.py:335–342  ·  view source on GitHub ↗

get the name of the parent of the given node :param node_name: the name of the node :type node_name: string :rtype: string

(self, node_name)

Source from the content-addressed store, hash-verified

333 )
334
335 def parent_of(self, node_name):
336 """get the name of the parent of the given node
337
338 :param node_name: the name of the node
339 :type node_name: string
340 :rtype: string
341 """
342 return self[int(self.parent_indices[self.index(node_name)].item())]
343
344 def index(self, node_name):
345 """get the index of the node

Callers 1

retarget_toMethod · 0.45

Calls 1

indexMethod · 0.95

Tested by

no test coverage detected