constant_yaw_to_imu.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:mav_rtk_gps 作者: ethz-asl 项目源码 文件源码
def yaw_to_imu(yaw):

    # WARNING: we assume zero roll and zero pitch!
    q_avg = tf.quaternion_from_euler(0.0, 0.0, yaw);
    imu_msg = Imu()
    imu_msg.orientation.w = q_avg[3]
    imu_msg.orientation.x = q_avg[0]
    imu_msg.orientation.y = q_avg[1]
    imu_msg.orientation.z = q_avg[2]

    pub_imu.publish(imu_msg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号