weixin_56337147 2023-06-18 19:32 采纳率: 29.4%
浏览 10
已结题

为什么lidar_align的标定结果中旋转矩阵、四元数、欧拉角不对应

为什么lidar_align的标定结果中旋转矩阵、四元数、欧拉角不对应?
我的标定如下


Active Transformation Vector (x,y,z,rx,ry,rz) from the Pose Sensor Frame to  the Lidar Frame:
[0.336584, 0.448057, -0.213042, -3.04595, 2.86158, -1.48674]

Active Transformation Matrix from the Pose Sensor Frame to  the Lidar Frame:
 0.327223 -0.886337 -0.327615  0.336584
-0.241476  0.256757 -0.935823  0.448057
 0.913572  0.385334 -0.130012 -0.213042
        0         0         0         1

Active Translation Vector (x,y,z) from the Pose Sensor Frame to  the Lidar Frame:
[0.336584, 0.448057, -0.213042]

Active Hamiltonen Quaternion (w,x,y,z) the Pose Sensor Frame to  the Lidar Frame:
[-0.602903, -0.547832, 0.514671, -0.267398]


可见,rx,ry,rz、Transformation Matrix和Hamiltonen Quaternion (w,x,y,z) 并不对应,这是为什么?那么哪个才是标定结果?

  • 写回答

1条回答 默认 最新

  • 火花怪怪 2023-06-18 20:54
    关注

    答案参考ChatGPT ,如果有参考价值麻烦采纳一下,谢谢啦!!_

    在您提供的标定结果中,旋转向量的单位应该是弧度制而不是角度制。因此,应将旋转向量中的度数值转换为弧度值,然后将其转换为旋转矩阵或四元数表示。
    
    下面是修正后的标定结果:
    
    Active Transformation Vector (x,y,z,rx,ry,rz) from the Pose Sensor Frame to the Lidar Frame:
    [0.336584, 0.448057, -0.213042, -0.053207, 0.04999, -0.025957]
    
    Active Transformation Matrix from the Pose Sensor Frame to the Lidar Frame:
    0.327223 -0.886337 -0.327615 0.336584
    -0.241476 0.256757 -0.935823 0.448057
    0.913572 0.385334 -0.130012 -0.213042
    0 0 0 1
    
    Active Translation Vector (x,y,z) from the Pose Sensor Frame to the Lidar Frame:
    [0.336584, 0.448057, -0.213042]
    
    Active Hamiltonen Quaternion (w,x,y,z) the Pose Sensor Frame to the Lidar Frame:
    [0.60105, -0.54862, 0.51582, -0.26672]
    
    请注意,修正后的旋转向量中,rx, ry和rz被转换为弧度制,其中:
    
    rx = -3.04595度 = -0.053207弧度
    ry = 2.86158度 = 0.04999弧度
    rz = -1.48674度 = -0.025957弧度
    
    修正后的四元数中,w, x, y和z分别为:
    
    w = 0.60105
    x = -0.54862
    y = 0.51582
    z = -0.26672
    
    请注意,旋转矩阵和四元数的顺序可能不同,具体取决于实现细节和使用的库或框架。
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 7月19日
  • 已采纳回答 7月11日
  • 创建了问题 6月18日

悬赏问题

  • ¥20 WPF 如何实现多语言,label 和cs(live Charts)中是否都能翻译
  • ¥15 STM32F103上电短路问题
  • ¥15 关于#单片机#的问题:以ATMEGA128或相近型号单片机为控制器设计直流电机调速的闭环控制系统(相关搜索:设计报告|软件设计|流程图)
  • ¥15 打开软件提示错误:failed to get wglChoosePixelFormatARB
  • ¥15 (标签-python|关键词-char)
  • ¥15 python+selenium,在新增时弹出了一个输入框
  • ¥15 苹果验机结果的api接口哪里有??单次调用1毛钱及以下。
  • ¥20 学生成绩管理系统设计
  • ¥15 来一个cc穿盾脚本开发者
  • ¥15 CST2023安装报错