import numpy as np
from pathlib import Path
from bvh_skeleton import *
bvh_file = 'pose2bvh/out/' + 'test.bvh'
# numpy array with shape (..., 3)
pose3d_world = np.load('res/X3D.npy')
h36m_skel = h36m_skeleton.H36mSkeleton()
channels, header = h36m_skel.poses2bvh(pose3d_world, output_file=bvh_file)