CHILDHOOD COOPERATION. “We have recently implemented this type of shared planning in robotic systems which can observe actions, attribute roles, and then use the resulting shared plan to perform the cooperative task, taking the role of either one of the two participants.”
http://www.eva.mpg.de/documents/IEEE/Lall%C3%A9e_Towards_IEEETrans_2012_1569280.pdf