def _to_rgb_array(self, image):
    'Convert a CARLA raw image to a RGB numpy array.'
    array = self._to_bgra_array(image)
    array = array[:, :, :3]
    return array
Convert a CARLA raw image to a RGB numpy array.
def _to_rgb_array(self, image):
    
    array = self._to_bgra_array(image)
    array = array[:, :, :3]
    return array