Rotation of the Gripper or Work object by an angle

Hello All,

I have an Application where in I have the necessity to rotate the Gripper according to the placement of the object.The camera will provide me with the angle which i can pick the piece(object of interest) and now i need to change the orientation of the gripper so that i picks the piece comfortably.
could you kindly suggest any available function in Robot Studio or provide a syntax that fulfills the objective

I am using a IRB360 Flex picker here.

many thanks in advance.

VEDH

I would use the RelTool function, use the Rz data coming from the camera. Please make sure that you have a good TCP.