carla_scenario_editor.py
def initGui(self):
        """Create the menu entries and toolbar icons inside the QGIS GUI."""
        weather = "icon_weather"
        weather_info = "Edit Environment"
        vehicle = "icon_vehicle"
        vehicle_info = "Add Vehicles"
        pedestrians = "icon_pedestrian"
        pedestrians_info = "Add Pedestrians"
        static = "icon_static"
        static_info = "Add static objects"
        maneuver = "icon_maneuver"
        maneuver_info = "Add maneuvers"
        parameter = "icon_parameter"
        parameter_info = "Add Parameters"
        endeval = "icon_endEval"
        endeval_info = "End evaluation KPI's"
        code_export = "icon_code"
        code_export_info = "Export OpenSCENARIO file"
        code_import = "icon_import"
        code_import_info = "Import OpenSCENARIO file"
        carla_logo = "carla_logo"
        carla_info = "Connect to CARLA"
        cam = "video_cam"
        cam_info = "Add bird eye camera"

        self.__add_action__(weather, weather_info, self.edit_environment)
        self.__add_action__(vehicle, vehicle_info, self.add_vehicles)
        self.__add_action__(pedestrians, pedestrians_info, self.add_pedestrians)
        self.__add_action__(static, static_info, self.add_props)
        self.__add_action__(maneuver, maneuver_info, self.add_maneuver)
        self.__add_action__(parameter, parameter_info, self.add_parameters)
        self.__add_action__(endeval, endeval_info, self.end_evaluation)
        self.__add_action__(code_export, code_export_info, self.export_xosc)
        self.__add_action__(code_import, code_import_info, self.import_xosc)
        self.__add_action__(carla_logo, carla_info, self.run_scenario)
        self.__add_action__(cam, cam_info, self.add_camera_position)
Create the menu entries and toolbar icons inside the QGIS GUI.
Create the menu entries and toolbar icons inside the QGIS GUI.
Create the menu entries and toolbar icons inside the QGIS GUI .
def initGui(self):
        weather = "icon_weather"
        weather_info = "Edit Environment"
        vehicle = "icon_vehicle"
        vehicle_info = "Add Vehicles"
        pedestrians = "icon_pedestrian"
        pedestrians_info = "Add Pedestrians"
        static = "icon_static"
        static_info = "Add static objects"
        maneuver = "icon_maneuver"
        maneuver_info = "Add maneuvers"
        parameter = "icon_parameter"
        parameter_info = "Add Parameters"
        endeval = "icon_endEval"
        endeval_info = "End evaluation KPI's"
        code_export = "icon_code"
        code_export_info = "Export OpenSCENARIO file"
        code_import = "icon_import"
        code_import_info = "Import OpenSCENARIO file"
        carla_logo = "carla_logo"
        carla_info = "Connect to CARLA"
        cam = "video_cam"
        cam_info = "Add bird eye camera"
        self.__add_action__(weather, weather_info, self.edit_environment)
        self.__add_action__(vehicle, vehicle_info, self.add_vehicles)
        self.__add_action__(pedestrians, pedestrians_info, self.add_pedestrians)
        self.__add_action__(static, static_info, self.add_props)
        self.__add_action__(maneuver, maneuver_info, self.add_maneuver)
        self.__add_action__(parameter, parameter_info, self.add_parameters)
        self.__add_action__(endeval, endeval_info, self.end_evaluation)
        self.__add_action__(code_export, code_export_info, self.export_xosc)
        self.__add_action__(code_import, code_import_info, self.import_xosc)
        self.__add_action__(carla_logo, carla_info, self.run_scenario)
        self.__add_action__(cam, cam_info, self.add_camera_position)
def initGui ( self ) : weather = "icon_weather" weather_info = "Edit Environment" vehicle = "icon_vehicle" vehicle_info = "Add Vehicles" pedestrians = "icon_pedestrian" pedestrians_info = "Add Pedestrians" static = "icon_static" static_info = "Add static objects" maneuver = "icon_maneuver" maneuver_info = "Add maneuvers" parameter = "icon_parameter" parameter_info = "Add Parameters" endeval = "icon_endEval" endeval_info = "End evaluation KPI's" code_export = "icon_code" code_export_info = "Export OpenSCENARIO file" code_import = "icon_import" code_import_info = "Import OpenSCENARIO file" carla_logo = "carla_logo" carla_info = "Connect to CARLA" cam = "video_cam" cam_info = "Add bird eye camera" self . __add_action__ ( weather , weather_info , self . edit_environment ) self . __add_action__ ( vehicle , vehicle_info , self . add_vehicles ) self . __add_action__ ( pedestrians , pedestrians_info , self . add_pedestrians ) self . __add_action__ ( static , static_info , self . add_props ) self . __add_action__ ( maneuver , maneuver_info , self . add_maneuver ) self . __add_action__ ( parameter , parameter_info , self . add_parameters ) self . __add_action__ ( endeval , endeval_info , self . end_evaluation ) self . __add_action__ ( code_export , code_export_info , self . export_xosc ) self . __add_action__ ( code_import , code_import_info , self . import_xosc ) self . __add_action__ ( carla_logo , carla_info , self . run_scenario ) self . __add_action__ ( cam , cam_info , self . add_camera_position )
Create the menu entries and toolbar icons inside the QGIS GUI.
Create the menu entries and toolbar icons inside the QGIS GUI .
"""Create the menu entries and toolbar icons inside the QGIS GUI."""
self