You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
`
The text was updated successfully, but these errors were encountered:
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
`
The text was updated successfully, but these errors were encountered: