Position and Force Control of Cooperating Robots Using Inverse Dynamics