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

Creating new Action Spaces with Custom Pose does not respect rotation #93

Open
hendrikunger opened this issue Jan 23, 2023 · 0 comments

Comments

@hendrikunger
Copy link

hendrikunger commented Jan 23, 2023

I am trying to set the origin of the action spaces for trackers in your "vive_tracker" example to a custom Posef in order to return tracked positions in a frame of reference that is more useful for my application.

I noticed that the orientation quaternion of the new pose I pass to "pose_in_action_space" during the creation of action spaces does not have any influence on the returned coordinates.
The position vector does translate the coordinates, but the values of the vector seem to influence the new coordinates in the wrong order. The x value of the vectors influences the new z, the y value the new x and the z value the new y.
After some further fiddeling I found that setting the x or y value of the position vector leads to the new returned position being sensitive to rotation of the tracker.

I tried to look deeper into your library to understand, or maybe identify a typo, but as mentioned in my other comment, I have no experience with connecting python to c librarys. It seems the parameters of "xr.ActionSpaceCreateInfo" are somehow shifted.

Could this be a bug?
Can I somehow help you investigate?

I am on Windows 10 and python 3.9 if this matters.

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

1 participant