Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why are there different rotation update methods for two models? #13

Open
animebing opened this issue Sep 15, 2021 · 1 comment
Open

Comments

@animebing
Copy link

Thanks for your nice work and great documentation and I have run it successfully. When I read the code in ParameterServer.cs, I find that the rotation update methods for model 1 and model 2 are different, which puzzles me a lot. Would you mind telling why and sharing some references to read?

@TianxingWu
Copy link
Owner

Thanks for your nice work and great documentation and I have run it successfully. When I read the code in ParameterServer.cs, I find that the rotation update methods for model 1 and model 2 are different, which puzzles me a lot. Would you mind telling why and sharing some references to read?

Thanks for your feedback. The rotation update methods of the two models are different because the local frame settings are not well aligned. To be more specific, since the two models are created separately, the orientations of the two "faces" respect to its own object frame happens to be different. As a result, if you want the two faces appeares to be at the same orientation respect to the world frame, the rotation transformations (from its object frame to the world frame) would be different.
You can read more materials about rotation transformation, world frame, object frame etc. to be more clear about the problem. In my case the rotation transformation is described in a quaternion (x,y,z,w) for simplicity, however you can just focus on the rotation matrix stuff as it is more clear and easy to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants