From be79ffdbcc51b36508a2de91db9c187a6a956f67 Mon Sep 17 00:00:00 2001 From: Joel Moriana Date: Tue, 26 Jul 2022 09:57:58 +0200 Subject: [PATCH] Changed enum to intenum --- PythonAPI/carla/agents/navigation/local_planner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonAPI/carla/agents/navigation/local_planner.py b/PythonAPI/carla/agents/navigation/local_planner.py index 7c82cc160..67de7e781 100644 --- a/PythonAPI/carla/agents/navigation/local_planner.py +++ b/PythonAPI/carla/agents/navigation/local_planner.py @@ -5,7 +5,7 @@ """ This module contains a local planner to perform low-level waypoint following based on PID controllers. """ -from enum import Enum +from enum import IntEnum from collections import deque import random @@ -14,7 +14,7 @@ from agents.navigation.controller import VehiclePIDController from agents.tools.misc import draw_waypoints, get_speed -class RoadOption(Enum): +class RoadOption(IntEnum): """ RoadOption represents the possible topological configurations when moving from a segment of lane to other.