Real-time Action Recognition for RGB--D and Motion Capture Data