Bone rotation control

Hi everyone,

I am new to blender, but got to know the basics of it to make a project running. i’ve got a good background in programming (in C++ mainly, but python is also ok).

So the problem is that i cant figure out how to apply rotation to individual bones on an armature (of a hand) in the game engine. for the time being it would be enough to get it moving using the keyboard. But the project actually involves motion capture using an arduino board (you wud’ve heard about it) and i would have to get data from a serial port.

i tried using a couple of tricks but i’m not clear about how to use them properly. I read that using bge.types.BL_ArmatureChannel.joint_rotation would be the most appropriate manner. But i still cant figure out how to select the individual bones.

Could someone help me with this please?

Thanks