def quaternion(self):
        """:obj:`numpy.ndarray` of float: A quaternion vector in wxyz layout.
        """
        q_xyzw = transformations.quaternion_from_matrix(self.matrix)
        q_wxyz = np.roll(q_xyzw, 1)
        return q_wxyz