How to change armature animation so it depends on rotation not translation

I have a .bvh file of an armature with some bones (not a human skeleton one); it has an animation but it’s based on the translation of these bones not rotation. Is there a way I can make the same animation with rotations instead? As this armature is parented and weighted to a mesh.
If anyone could, please advise.