LIO-SAM icon indicating copy to clipboard operation
LIO-SAM copied to clipboard

Do not understand the difference between the extrinsicRot and extrinsicRPY matrices in the params.yaml file

Open brandon-lawrence96 opened this issue 1 year ago • 3 comments

Hi Trixiao! Thank you for sharing your amazing work! Can I ask what the difference between the extrinisicRot and extrinsicRPY is? Currently, to get from my imu frame to my lidar frame, I need to rotate my imu by -180 degrees about the x-axis. Does this mean that my extrinsicRot matrix should be [1, 0, 0, 0, -1, 0, 0, 0, -1]?

And how about the extrinsicRPY matrix? What should I set for that?

Thank you for your assistance in this! :)

brandon-lawrence96 avatar May 29 '23 08:05 brandon-lawrence96

I had a question on the same line! I wanted to know the difference between extrinsicRot and extrinsicRPY - it wasn't that clear from the explanation in the README.

VineetTambe avatar Aug 22 '23 15:08 VineetTambe

If you search for explanations you will find plenty of them in the issues if you also include closed ones in your search. Briefly summarized, they both rotate imu measurements from the corresponding measurement frame to the lidar frame (see imuConverter method in utility.hpp). The reason why there are two such rotations is that many imus output orientations (extrinsicRPY) in a different frame than angular velocities and accelerations (extrinsicRot).

grischi avatar Aug 23 '23 05:08 grischi

extrinisicRot rotates the acceleration and angular velocity of imu, extrinsicRPY rotates the geomagnetic direction of imu. These two are not the same coordinate system in the author's device.

ghost avatar Oct 11 '23 14:10 ghost