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

Confused about correct rigid transformation result #59

Open
Nasrudin78 opened this issue Jan 21, 2023 · 1 comment
Open

Confused about correct rigid transformation result #59

Nasrudin78 opened this issue Jan 21, 2023 · 1 comment

Comments

@Nasrudin78
Copy link

Hi,
I have a dummy question regarding the final rigid transformation, in my case between a monocular camera sensor and a lidar hdl32. I see in your code that when you print the final rigid transformation is in format : xt, yt, zt, roll, pitch, yaw in registration.csv. But in the. tf file you swap the order being: xt, yt, zt, yaw, pitch, roll. What's the reason of doing that?
Which one is the correct to get the matrix that goes from lidar coordinate system to camera coordinate system? Could you provide some visual example?
Let's supose that I have all coordinate systems for both camera and lidar with x-axis pointing forward, y-axis pointing left and z-axis up.
Mathematically what is the matrix in homogenous that is responsible of relating these two sensors?

For my case, I'm doing:

Velo2cam= getRotation(yaw, pitch, roll, order='XYZ' ) | T(xt, yt, zt)

And then : Camera Point = Velo2cam_in_hom @ Lidar_point

But, I don't know why I have to reverse roll by yaw in the formula.
Thanks

@Rurinn
Copy link

Rurinn commented Mar 8, 2023

I have the same question here.
I tried both results (rpy and ypr) in rviz and seemed the order ypr in tf file was correct.

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

2 participants