utils.py 文件源码

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

项目:particle_filter 作者: mit-racecar 项目源码 文件源码
def quaternion_to_angle(q):
    """Convert a quaternion _message_ into an angle in radians.
    The angle represents the yaw.
    This is not just the z component of the quaternion."""
    x, y, z, w = q.x, q.y, q.z, q.w
    roll, pitch, yaw = tf.transformations.euler_from_quaternion((x, y, z, w))
    return yaw
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号