4.16 bvh -- Reading Biovision Hierarchical (BVH) motion capture files

This module contains the BVHReader class which can be used as a base class for reading Biovision Hierarchical (BVH) files. The class reads the file and invokes callback methods with the corresponding data in the file. Derived classes have to implement those callback methods and process the data as appropriate.

class BVHReader( filename)
filename is the name of the BVH file that should be read.

read( )
Read the entire file.

onHierarchy( root)
This method is called after the joint hierarchy was read. The entire hierarchy is passed in the argument root which is a Node object.

onMotion( frames, dt)
This method is called when the motion data begins. frames is the number of motion samples that follow and dt is the time interval that corresponds to one frame.

onFrame( values)
This method is called for each motion sample (frame) in the file. values is a list of floats that contains the position and angles of the entire skeleton. The order is the same than when traversing the joint hierarchy in a depth-first manner.



Subsections