This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Added functionality for interpreting the motion annotations into transformation matrices and euclidean coordinates. | |
#Restructured the code into an easy to instantiate class. | |
#To use: BVH(<open file handle>) | |
import re | |
import time | |
import zipfile | |
from StringIO import StringIO | |
from math import radians, sqrt, cos, sin | |
from numpy import matrix, dot, zeros, array, eye, ravel, asarray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:application/json;base64,eyJhdHRyaWJ1dGVzIjpbeyJ0cmFpdF90eXBlIjoiUHVsc2UgTW9kdWxvIiwidmFsdWUiOjIzfSx7InRyYWl0X3R5cGUiOiJMb3cgUHVsc2UgSHoiLCJ2YWx1ZSI6MTUwfSx7InRyYWl0X3R5cGUiOiJQdWxzZSBTdGVwIiwidmFsdWUiOjR9LHsidHJhaXRfdHlwZSI6IkxGTyBNb2R1bG8iLCJ2YWx1ZSI6N30seyJ0cmFpdF90eXBlIjoiVGltZSBNb2R1bG8iLCJ2YWx1ZSI6Mn0seyJ0cmFpdF90eXBlIjoiRmlsdGVyIEh6IiwidmFsdWUiOjI1MH0seyJ0cmFpdF90eXBlIjoiRmlsdGVyIEdhaW4iLCJ2YWx1ZSI6NDR9LHsidHJhaXRfdHlwZSI6IkZpbHRlciBRIiwidmFsdWUiOjI1fSx7InRyYWl0X3R5cGUiOiJGYWRlIEluIiwidmFsdWUiOjAuMn0seyJ0cmFpdF90eXBlIjoiRGVjYXkiLCJ2YWx1ZSI6MS4yNjB9LHsidHJhaXRfdHlwZSI6IlJldmVyYiBIaWdoIiwidmFsdWUiOjg1Mn0seyJ0cmFpdF90eXBlIjoiUmV2ZXJiIExvdyIsInZhbHVlIjozNTJ9LHsidHJhaXRfdHlwZSI6IlZpc3VhbGl6ZXIiLCJ2YWx1ZSI6IlNwZWN0cm9ncmFwaCJ9LHsidHJhaXRfdHlwZSI6IkZpbHRlciIsInZhbHVlIjoibG93cGFzcyJ9LHsidHJhaXRfdHlwZSI6Ik1haW4gQ2hhbm5lbCIsInZhbHVlIjoiT3BlblMqYSJ9LHsidHJhaXRfdHlwZSI6IkN1c3RvbSBWaXN1YWxpemVyIiwidmFsdWUiOiJTdGFyYnVyc3QifV0sImltYWdlIjoiZGF0YTppbWFnZS9zdmcreG1sO2Jhc2U2NCxQRDk0Yld3Z2RtVnljMmx2YmowaU1TNHdJaUJsYm1 |