def random_so3(): """ :return: a random SO(3) matrix (for debugging) """ return tr.random_rotation_matrix()[:3, :3]