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

The problem of first rotating and then translating #1120

Open
persuelx opened this issue Oct 29, 2024 · 1 comment
Open

The problem of first rotating and then translating #1120

persuelx opened this issue Oct 29, 2024 · 1 comment

Comments

@persuelx
Copy link

box.translate(-np.array(pose_rec['translation']))
box.rotate(Quaternion(pose_rec['rotation']).inverse)

How should I understand the nuscenes question of translating first and then rotating later,Usually, it is rotated first and then translated.thank you!!

@whyekit-motional
Copy link
Collaborator

@persuelx it depends on the situation - for example, rotation is performed first followed by translation:

pc.rotate(Quaternion(cs_record['rotation']).rotation_matrix)
pc.translate(np.array(cs_record['translation']))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants