How is translate(vec) function of Pose Bone supposed to be used?


I just called it from a pose bone with a vector as argument. It showed a ‘read-only’ error.
I need to change the location of a pose bone in World Space (not using ops). If PoseBone.translate(vec) function is not supposed to be used to do so, then is there any other way to do that?