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

Extra care needed for np.sin(theta) where theta = +np.pi or -np.pi ? #14

Open
Carpetfizz opened this issue Sep 22, 2021 · 0 comments
Open

Comments

@Carpetfizz
Copy link

Hello,

In the so3.log function

return self.vee((0.5 * angle / np.sin(angle)) * (self.mat - self.mat.T))

There's a division by np.sin(angle) but there isn't a check to see if angle is +np.pi or -np.pi. I understand that due to numerical precision, np.sin(np.pi) != 0.0 but I'm wondering if there needs to be some extra care taken here.

See

https://en.wikipedia.org/wiki/Axis–angle_representation#Log_map_from_SO(3)_to_%7F'%22%60UNIQ--postMath-0000000D-QINU%60%22'%7F(3)

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