carla_scenario_editor.py
def run_scenario(self):
        '''
        Opens the Carla-Connect widget
        '''
        if not carla_available:
            message = "No CARLA module available"
            self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
            QgsMessageLog.logMessage(message, level=Qgis.Info)
            return

        if not self.get_carla_host_and_port():
            message = "Did not specify CARLA host and port"
            self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
            QgsMessageLog.logMessage(message, level=Qgis.Info)
            return

        message = "Loading Map"
        self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
        QgsMessageLog.logMessage(message, level=Qgis.Info)
        self.update_map = MapUpdate(self.host, self.port)
        self.update_map.read_map()
        self.update_map.map_init()
        self.update_map.map_update()
        message = "Map Loaded"
        self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
        QgsMessageLog.logMessage(message, level=Qgis.Info)
        if not self.pluginIsActive:
            self.dockwidget = CarlaConnectDockWidget(host=self.host, port=self.port)
            self.dockwidget.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.LeftDockWidgetArea, self.dockwidget)
            self.dockwidget.show()
            self.pluginIsActive = True
        action = self.action_tool['carla_logo'][0]
        action.setDisabled(True)

        Opens the Carla-Connect widget
        
Opens the Carla-Connect widget
Opens the Carla - Connect widget
def run_scenario(self):
        if not carla_available:
            message = "No CARLA module available"
            self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
            QgsMessageLog.logMessage(message, level=Qgis.Info)
            return
        if not self.get_carla_host_and_port():
            message = "Did not specify CARLA host and port"
            self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
            QgsMessageLog.logMessage(message, level=Qgis.Info)
            return
        message = "Loading Map"
        self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
        QgsMessageLog.logMessage(message, level=Qgis.Info)
        self.update_map = MapUpdate(self.host, self.port)
        self.update_map.read_map()
        self.update_map.map_init()
        self.update_map.map_update()
        message = "Map Loaded"
        self.iface.messageBar().pushMessage("Info", message, level=Qgis.Info)
        QgsMessageLog.logMessage(message, level=Qgis.Info)
        if not self.pluginIsActive:
            self.dockwidget = CarlaConnectDockWidget(host=self.host, port=self.port)
            self.dockwidget.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.LeftDockWidgetArea, self.dockwidget)
            self.dockwidget.show()
            self.pluginIsActive = True
        action = self.action_tool['carla_logo'][0]
        action.setDisabled(True)
def run_scenario ( self ) : if not carla_available : message = "No CARLA module available" self . iface . messageBar ( ) . pushMessage ( "Info" , message , level = Qgis . Info ) QgsMessageLog . logMessage ( message , level = Qgis . Info ) return if not self . get_carla_host_and_port ( ) : message = "Did not specify CARLA host and port" self . iface . messageBar ( ) . pushMessage ( "Info" , message , level = Qgis . Info ) QgsMessageLog . logMessage ( message , level = Qgis . Info ) return message = "Loading Map" self . iface . messageBar ( ) . pushMessage ( "Info" , message , level = Qgis . Info ) QgsMessageLog . logMessage ( message , level = Qgis . Info ) self . update_map = MapUpdate ( self . host , self . port ) self . update_map . read_map ( ) self . update_map . map_init ( ) self . update_map . map_update ( ) message = "Map Loaded" self . iface . messageBar ( ) . pushMessage ( "Info" , message , level = Qgis . Info ) QgsMessageLog . logMessage ( message , level = Qgis . Info ) if not self . pluginIsActive : self . dockwidget = CarlaConnectDockWidget ( host = self . host , port = self . port ) self . dockwidget . closingPlugin . connect ( self . onClosePlugin ) self . iface . addDockWidget ( Qt . LeftDockWidgetArea , self . dockwidget ) self . dockwidget . show ( ) self . pluginIsActive = True action = self . action_tool [ 'carla_logo' ] [ 0 ] action . setDisabled ( True )
Opens the Carla-Connect widget
Opens the Carla - Connect widget
'''
        Opens the Carla-Connect widget
        '''
self