def __init__(self, map_img, parent=None):
        super(MainWindow, self).__init__(parent)
        self.teleop = TeleopWidget(self)
        self.map_img = map_img
        self.map = MapWidget(self)
        self.setupUi(self, self.map.width, self.map.height)
        self.map1 = LaserWidget(self)
        self.logo = LogoWidget(self, "resources/logo_jderobot1.png")
        self.logo2 = LogoWidget(self, "resources/logo_jderobot2.png")
        self.tlLayout.addWidget(self.teleop)
        self.teleop.setVisible(True)
        self.mapLayout.addWidget(self.map)
        self.map1Layout.addWidget(self.map1)
        self.logoLayout.addWidget(self.logo)
        self.roboticsLogoLayout.addWidget(self.logo2)
        self.map.setVisible(True)
        self.map1.setVisible(True)
        self.logo.setVisible(True)

        #self.rotationDial.valueChanged.connect(self.rotationChange)
        #self.probButton.clicked.connect(self.recalculate)
        #self.probButton.setCheckable(True)
        #self.newGeneration.clicked.connect(self.nextGeneration)
        #self.newGeneration.setCheckable(True)
        self.pushButton.clicked.connect(self.playClicked)
        self.pushButton.setCheckable(True)
        self.updGUI.connect(self.updateGUI)

        self.particles = []
        self.estimation = []
Ejemplo n.º 2
0
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)
        self.teleop = TeleopWidget(self)
        self.map = MapWidget(self)
        self.tlLayout.addWidget(self.teleop)
        self.teleop.setVisible(True)
        self.mapLayout.addWidget(self.map)
        self.map.setVisible(True)

        self.pushButton.clicked.connect(self.playClicked)
        self.pushButton.setCheckable(True)
        self.updGUI.connect(self.updateGUI)
        self.camera1 = CameraWidget(self)

        self.stopButton.clicked.connect(self.stopClicked)
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)
        # self.setStyleSheet(open("gui/style.qss", "r").read())
        #self.teleop=TeleopWidget(self)
        #self.tlLayout.addWidget(self.teleop)
        #self.teleop.setVisible(True)
        #self.logo = LogoWidget(self)
        #self.logoLayout.addWidget(self.logo)
        #self.logo.setVisible(True)

        #self.pushButton.clicked.connect(self.playClicked)
        #self.pushButton.setCheckable(True)
        self.updGUI.connect(self.updateGUI)
        self.camera1=CameraWidget(self)
        self.mapW = MapWidget(self)
        self.verticalLayoutMap.addWidget(self.mapW)
        print(self.mapW.width(), self.mapW.height())
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)
        self.teleop=TeleopWidget(self)
        self.map=MapWidget(self)
        self.map1=MapWidget1(self)
        self.logo = LogoWidget(self)
        self.tlLayout.addWidget(self.teleop)
        self.teleop.setVisible(True)
        self.mapLayout.addWidget(self.map)
        self.map1Layout.addWidget(self.map1)
        self.logoLayout.addWidget(self.logo)
        self.map.setVisible(True)
        self.map1.setVisible(True)
        self.logo.setVisible(True)

        self.pushButton.clicked.connect(self.playClicked)
        self.pushButton.setCheckable(True)
        self.updGUI.connect(self.updateGUI)
Ejemplo n.º 5
0
    def __init__(self, pose3d, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)
        self.teleop=TeleopWidget(self)
        self.map=MapWidget(self)
        self.logo = LogoWidget(self)
        self.tlLayout.addWidget(self.teleop)
        self.teleop.setVisible(True)
        self.mapLayout.addWidget(self.map)
        self.logoLayout.addWidget(self.logo)
        self.map.setVisible(True)
        self.logo.setVisible(True)

        self.percentajeCheck.stateChanged.connect(self.showPercentajeWidget)
        self.percentajeWidget=PercentajeWidget(self, pose3d)
        self.percentajeCommunicator=Communicator()

        self.pushButton.clicked.connect(self.playClicked)
        self.pushButton.setCheckable(True)
        self.updGUI.connect(self.updateGUI)

        self.stopButton.clicked.connect(self.stopClicked)