示例#1
0
def getEulerAngles(tracker, device):
    result = trackd.new_floatArray(3)
    trackd.trackdGetEulerAngles(tracker, device, result)
    orn = (trackd.floatArray_getitem(result, 0), trackd.floatArray_getitem(result, 1), trackd.floatArray_getitem(result, 2))
    trackd.delete_floatArray(result)
    return orn
示例#2
0
def getPosition(tracker, device):
    result = trackd.new_floatArray(3)
    trackd.trackdGetPosition(tracker, device, result)
    pos = (trackd.floatArray_getitem(result, 0), trackd.floatArray_getitem(result, 1), trackd.floatArray_getitem(result, 2))
    trackd.delete_floatArray(result)
    return pos