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

Uniformly sample rotations. #21

Open
wang-chen opened this issue May 4, 2022 · 2 comments
Open

Uniformly sample rotations. #21

wang-chen opened this issue May 4, 2022 · 2 comments
Labels
help wanted You are welcomed to discuss with pypose dev team and state your interests in implementing it. new feature New feature or request

Comments

@wang-chen
Copy link
Member

Problem to solve

  • Sampling uniformly over the space of rotations is often needed for robotic planning.
  • Thus possible interfaces can be rand_SO3, rand_SE3, rand_Sim3, rand_RxSO3.
  • The Haar distribution may be useful for this purpose.
@wang-chen wang-chen added the new feature New feature or request label May 4, 2022
@wang-chen wang-chen added the help wanted You are welcomed to discuss with pypose dev team and state your interests in implementing it. label May 13, 2022
@wang-chen wang-chen assigned sihengt and unassigned Jaraxxus-Me Jun 9, 2022
@sihengt
Copy link

sihengt commented Jun 10, 2022

Am implementing rand_SO3 based on the following resources:
https://github.com/scipy/scipy/blob/v1.8.1/scipy/stats/_multivariate.py#L3271-L3387
https://github.com/mdp-toolkit/mdp-toolkit/blob/300d288d75ac8495f7f4a0ef40cb71d4ff58a311/mdp/utils/routines.py#L178-L203

Algorithm is based on drawing a random variable from the Haar distribution, the only known uniform distribution on SO(n). It is described in the paper by Stewart, G.W., “The efficient generation of random orthogonal matrices with an application to condition estimators”.

@neanea04
Copy link

Hello, Please Look into this simple rotation sampling algorithm from cvpr 2022. https://marcalexa.github.io/superfibonacci/

@sihengt sihengt removed their assignment Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted You are welcomed to discuss with pypose dev team and state your interests in implementing it. new feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants