Direct and inverse kinematics for coordinated motion tasks of a two-manipulator system