def DrawSkeletonsGT()

in renderer/glViewer.py [0:0]


def DrawSkeletonsGT():
    
    assert False       #Deprecated

    global g_colors
    # global g_skeletons_GT, g_frameIdx#, g_normals
    global g_speech,g_speechGT
    global g_bApplyRootOffset
    global g_bodyNormals
    #print(g_frameIdx)
    if g_skeletons_GT is None:
        return

    #frameLimit = g_skeletons.shape[2]
    #frameLens = [l.shape[1] for l in g_skeletons]
    #g_frameLimit = min(frameLens)

    #for humanIdx in range(g_skeletons.shape[0]):
    for humanIdx in range(len(g_skeletons_GT)):
        # if skelIdx ==0:
        #     # if g_idx+time_offset>=g_skeletons.shape[2]:
        #     #     continue
        #     skel = g_skeletons[skelIdx, :, g_idx+time_offset]
        #     # normal = g_normals[skelIdx, :, g_idx+time_offset]
        # else:
        #skel = g_skeletons[humanIdx, :, g_frameIdx]
        if(g_frameIdx >= g_skeletons_GT[humanIdx].shape[1]):
            continue

        skel = g_skeletons_GT[humanIdx][:, g_frameIdx]
        # normal = g_normals[skelIdx, :, g_idx]

        if g_bApplyRootOffset:
            skel = skel.copy()
            #skel[0::3] = skel[0::3]+ 70 *humanIdx
            skel[0::3] = skel[0::3]+ ROOT_OFFSET_DIST *humanIdx

        if skel.shape[0]==78:       #SMPlCOCO19 + headtop (19) + (leftFoot --toe20 pink21 heel22) + (rightFoot--toe23-pink24-heel25)
            drawbody_SMPLCOCO_TotalCap26(skel, [0,255,0])
        elif skel.shape[0]==57: #Panoptic Studio (SMC19) with 19 joints. Note SMC21 includes headtop
            drawbody_SMC19(skel, g_colors[humanIdx % len(g_colors)])
        elif skel.shape[0]==96: #human36
            drawbody_joint32_human36m(skel, g_colors[humanIdx % len(g_colors)])
        elif skel.shape[0]==66: #Holden's converted form
            drawbody_joint22(skel, g_colors[humanIdx % len(g_colors)])
        elif skel.shape[0]==93: #CMU Mocap Raw data (31joints)
            drawbody_joint31(skel, g_colors[humanIdx % len(g_colors)])
        else:
            drawbody_joint_ptOnly(skel, g_colors[humanIdx % len(g_colors)])