Hi @CristianViSa,
I see that you set the set_gravity_as_origin to false in your sample, have you tried with it set to true?
As the floor plane estimation may change for each camera startup, having the gravity as origin may return a more robust world rotation and give you a better slope angle.