Detect relative position or orientation between gripper and currently handled object