def quat_2_euler(quat):
    """calculates and returns: yaw, pitch, roll from given quaternion"""
    return R.from_quat(quat).as_euler("xyz")
calculates and returns: yaw, pitch, roll from given quaternion
serl_robot_infra/franka_env/utils/rotations.py