def maneuverToDir(str: str) -> int:
    """
    maps dubins curve action to an interger {-1, 0, 1}

    Paramters
    ---------
    str: str
        dubins curve action

    Returns
    -------
    int
        L -> 1, R -> -1, S -> 0
    """
    if str == 'L':
        return 1
    if str == 'R':
        return -1
    return 0