euleur angle

First of all, thanks a lot Legion, it works.

I believe I did not explained well what I meant by “real euler angles”. At school, we leant to use euler angles for solid kynematics. These angles are the ones described in this page : en.wikipedia.org/wiki/Euler_angles

However the angles used in Panda are the Tait-bryan ones (who are also euler angles): en.wikipedia.org/wiki/Tait-Bryan_angles

In our particular case, the two first rotation are the same in both cases. But the thiord one isn’t. In Panda, the third rotation is done turning around the new y axis, and in the euler angles I thought I was using, it is done turning around the new z axis.

Everything is solved with the solution provided bu Legion (thanks again), and you can just do that:

def rotateWithGeneralConvention(model, alpha, beta, gamma):
      model.setHpr(alpha, beta,0)
      model.setHpr(model, gamma, 0, 0)

PS: re-re-re-re-re-reading your posts, I think I may have not understood at all how the angles works in Panda (around which axes). My program works perfectly well now, but I may not be the only person with this kind of problem, and it could be good if somebody did a small article about these angles in the doc (I can do it if nobody wants to, but I would like to be sure of what I understood)