Perception of Human Movement Based on Modular Movement Primitives