Knowledge transfer in robot manipulation tasks