(q)
return q_heading
Return a quaternion representing the heading rotation of q along the vertical axis (z axis).

  Args:
    q: A quaternion that the heading is to be computed from.

  Returns:
    A quaternion representing the rotation about the z axis.
Return a quaternion representing the heading rotation of q along the vertical axis (z axis).
Return a quaternion representing the heading rotation of q along the vertical axis ( z axis ) .
def calc_heading_rot(q):
  """Return a quaternion representing the heading rotation of q along the vertical axis (z axis).

  Args:
    q: A quaternion that the heading is to be computed from.

  Returns:
    A quaternion representing the rotation about the z axis.

  """
  heading = calc_heading(q)
  q_heading = transformations.quaternion_about_axis(heading, [0, 0, 1])
  return q_heading
def calc_heading_rot ( q ) : heading = calc_heading ( q ) q_heading = transformations . quaternion_about_axis ( heading , [ 0 , 0 , 1 ] ) return q_heading