4.16.1 Node objects

The onHierarchy() method of the BVHReader class takes the joint hierarchy of the skeleton as input. Each node in this hierarchy is represented by a Node object that contains all information stored in the BVH file.

class Node
A Node object represents one joint in the hierarchy.

name
This is the name of the joint (or the root).

channels
This is a list of channel names that are associated with this joint. This list determines how many values are stored in the motion section and how they are to be interpreted. Each channel name can be one of Xposition, Yposition, Zposition, Xrotation, Yrotation, Zrotation.

offset
This is a 3-tuple of floats containing the offset position of this joint relative to the parent joint.

children
This is a list of children joints (which are again described by Node objects).

isRoot( )
Returns True if the node is the root node.

isEndSite( )
Returns True if the node is a leaf.