Calculate the weight of object held by gripper

As was described in this other thread, it is possible with a force/torque sensor mounted at the robot wrist.