Code for Learning Latent Structure for Activity Recognition (ICRA 2014)