def convert_rgb_from_source_to_agent(self, source: carla.Image) -> Union[(RGBData, None)]:
    'Convert CARLA raw Image to a Union with RGB numpy array'
    try:
        source.convert(cc.Raw)
        return RGBData(data=self._to_rgb_array(source))
    except:
        return None
Convert CARLA raw Image to a Union with RGB numpy array
def convert_rgb_from_source_to_agent(self, source: carla.Image) -> Union[(RGBData, None)]:
    
    try:
        source.convert(cc.Raw)
        return RGBData(data=self._to_rgb_array(source))
    except:
        return None