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

random_sample_rotation problem #86

Open
Jianqiuer opened this issue Oct 22, 2023 · 0 comments
Open

random_sample_rotation problem #86

Jianqiuer opened this issue Oct 22, 2023 · 0 comments

Comments

@Jianqiuer
Copy link

Thanks for your nice work. What is the meaning of the random_sample_rotation function performing the np.linalg.norm(axis) operation?
`
def random_sample_rotation_v2() -> np.ndarray:
axis = np.random.rand(3) - 0.5
axis = axis / np.linalg.norm(axis) + 1e-8
theta = np.pi * np.random.rand()
euler = axis * theta
rotation = Rotation.from_euler('zyx', euler).as_matrix()
return rotation

`

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