From bec39347c7a2ac3ada402517e30b3359e23b4532 Mon Sep 17 00:00:00 2001 From: zimmy87 Date: Wed, 14 Apr 2021 13:14:25 -0700 Subject: [PATCH] Update types.py removing duplicate definition of ImageType class --- PythonClient/airsim/types.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/PythonClient/airsim/types.py b/PythonClient/airsim/types.py index c10b2dd6ec..93063f4f94 100644 --- a/PythonClient/airsim/types.py +++ b/PythonClient/airsim/types.py @@ -19,17 +19,6 @@ def from_msgpack(cls, encoded): #return cls(**msgpack.unpack(encoded)) return obj - -class ImageType: - Scene = 0 - DepthPlanar = 1 - DepthPerspective = 2 - DepthVis = 3 - DisparityNormalized = 4 - Segmentation = 5 - SurfaceNormals = 6 - Infrared = 7 - class _ImageType(type): @property def Scene(cls): @@ -55,7 +44,14 @@ def __getattr__(self, key): raise AttributeError class ImageType(metaclass=_ImageType): - pass + Scene = 0 + DepthPlanar = 1 + DepthPerspective = 2 + DepthVis = 3 + DisparityNormalized = 4 + Segmentation = 5 + SurfaceNormals = 6 + Infrared = 7 class DrivetrainType: MaxDegreeOfFreedom = 0