Consistent task specification for manipulation systems with general kinematics