carla_connect/mapupdate.py
def map_init(self):
        '''
        Method that reads map from ROOT_DIRECTORY and update on qgis.
        '''
        xodr_path = '/tmp/tempfile.xodr'    # nosec
        file_name = (xodr_path)
        self.init_map_succeeded = False
        open_drive_content = self.open_drive_map
        self.init_map_succeeded = ad.map.access.initFromOpenDriveContent(
            open_drive_content, 0.2, ad.map.intersection.IntersectionType.Unknown,
            ad.map.landmark.TrafficLightType.UNKNOWN)
        if self.init_map_succeeded and not ad.map.access.isENUReferencePointSet():
            ad.map.access.setENUReferencePoint(ad.map.point.createGeoPoint(ad.map.point.Longitude(8.4421163),
                                                                           ad.map.point.Latitude(49.0192671),
                                                                           ad.map.point.Altitude(0.)))
            Globs.log.warning("OpenDrive file '{}' doesn't provide GEO reference point. Setting a default at {}".format(
                file_name, ad.map.access.getENUReferencePoint()))

        Method that reads map from ROOT_DIRECTORY and update on qgis.
        
Method that reads map from ROOT_DIRECTORY and update on qgis.
Method that reads map from ROOT_DIRECTORY and update on qgis .
def map_init(self):
        xodr_path = '/tmp/tempfile.xodr'    
        file_name = (xodr_path)
        self.init_map_succeeded = False
        open_drive_content = self.open_drive_map
        self.init_map_succeeded = ad.map.access.initFromOpenDriveContent(
            open_drive_content, 0.2, ad.map.intersection.IntersectionType.Unknown,
            ad.map.landmark.TrafficLightType.UNKNOWN)
        if self.init_map_succeeded and not ad.map.access.isENUReferencePointSet():
            ad.map.access.setENUReferencePoint(ad.map.point.createGeoPoint(ad.map.point.Longitude(8.4421163),
                                                                           ad.map.point.Latitude(49.0192671),
                                                                           ad.map.point.Altitude(0.)))
            Globs.log.warning("OpenDrive file '{}' doesn't provide GEO reference point. Setting a default at {}".format(
                file_name, ad.map.access.getENUReferencePoint()))
def map_init ( self ) : xodr_path = '/tmp/tempfile.xodr' file_name = ( xodr_path ) self . init_map_succeeded = False open_drive_content = self . open_drive_map self . init_map_succeeded = ad . map . access . initFromOpenDriveContent ( open_drive_content , 0.2 , ad . map . intersection . IntersectionType . Unknown , ad . map . landmark . TrafficLightType . UNKNOWN ) if self . init_map_succeeded and not ad . map . access . isENUReferencePointSet ( ) : ad . map . access . setENUReferencePoint ( ad . map . point . createGeoPoint ( ad . map . point . Longitude ( 8.4421163 ) , ad . map . point . Latitude ( 49.0192671 ) , ad . map . point . Altitude ( 0. ) ) ) Globs . log . warning ( "OpenDrive file '{}' doesn't provide GEO reference point. Setting a default at {}" . format ( file_name , ad . map . access . getENUReferencePoint ( ) ) )
Method that reads map from ROOT_DIRECTORY and update on qgis.
Method that reads map from ROOT_DIRECTORY and update on qgis .
'''
        Method that reads map from ROOT_DIRECTORY and update on qgis.
        ''' # nosec
self