Implemented the 'frame' event handler, generating YARP output from input motions.