Task-oriented dynamic modeling of two cooperating robots