src/bvhtoolbox/convert/bvh2xaf_helpers.py
def joint2quat(bvh_tree, joint_name, frame=0, axes='rzxz'):
    """Read the Euler angles of a joint in order given by axes and return it as quaternions.
    
    :param bvh_tree: BVH structure.
    :type bvh_tree: bvhtree.BvhTree
    :param joint_name: Name of the joint.
    :type joint_name: str
    :param frame: The frame to return.
    :type frame: int
    :param axes: The order in which to return the angles. Usually that's the joint's channel order.
    :type axes: str
    :return: quaterion (wxyz)
    :rtype: numpy.ndarray
    """
    euler_ordered = np.radians(get_euler(bvh_tree, joint_name, frame, axes[1:]))
    quat = t3d.euler.euler2quat(*euler_ordered, axes=axes)
    return quat
Read the Euler angles of a joint in order given by axes and return it as quaternions.
    
    :param bvh_tree: BVH structure.
    :type bvh_tree: bvhtree.BvhTree
    :param joint_name: Name of the joint.
    :type joint_name: str
    :param frame: The frame to return.
    :type frame: int
    :param axes: The order in which to return the angles. Usually that's the joint's channel order.
    :type axes: str
    :return: quaterion (wxyz)
    :rtype: numpy.ndarray
    
Read the Euler angles of a joint in order given by axes and return it as quaternions.
Read the Euler angles of a joint in order given by axes and return it as quaternions .
def joint2quat(bvh_tree, joint_name, frame=0, axes='rzxz'):
    euler_ordered = np.radians(get_euler(bvh_tree, joint_name, frame, axes[1:]))
    quat = t3d.euler.euler2quat(*euler_ordered, axes=axes)
    return quat
def joint2quat ( bvh_tree , joint_name , frame = 0 , axes = 'rzxz' ) : euler_ordered = np . radians ( get_euler ( bvh_tree , joint_name , frame , axes [ 1 : ] ) ) quat = t3d . euler . euler2quat ( * euler_ordered , axes = axes ) return quat
Read the Euler angles of a joint in order given by axes and return it as quaternions.
Read the Euler angles of a joint in order given by axes and return it as quaternions .
"""Read the Euler angles of a joint in order given by axes and return it as quaternions.
    
    :param bvh_tree: BVH structure.
    :type bvh_tree: bvhtree.BvhTree
    :param joint_name: Name of the joint.
    :type joint_name: str
    :param frame: The frame to return.
    :type frame: int
    :param axes: The order in which to return the angles. Usually that's the joint's channel order.
    :type axes: str
    :return: quaterion (wxyz)
    :rtype: numpy.ndarray
    """
None
numpy.ndarray
bvh_tree
None
joint_name
Name of the joint.
Name of the joint .
frame
The frame to return.
The frame to return .
axes
The order in which to return the angles. Usually that's the joint's channel order.
The order in which to return the angles . Usually that ' s the joint ' s channel order .