Implementing dynamic movement primitives
Reference : Pastor, Peter, et al. "Learning and generalization of motor skills by learning from demonstration." Robotics and Automation, 2009. ICRA'09. IEEE International Conference on. IEEE, 2009.
A new implementaion of Dynamic Motion Primitives with ros integration can be found here ros_dmp.