当前位置: 首页>>代码示例>>Python>>正文


Python Relay.showDetails方法代码示例

本文整理汇总了Python中BAL.Devices.Relay.Relay.showDetails方法的典型用法代码示例。如果您正苦于以下问题:Python Relay.showDetails方法的具体用法?Python Relay.showDetails怎么用?Python Relay.showDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BAL.Devices.Relay.Relay的用法示例。


在下文中一共展示了Relay.showDetails方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: MainWindow

# 需要导入模块: from BAL.Devices.Relay import Relay [as 别名]
# 或者: from BAL.Devices.Relay.Relay import showDetails [as 别名]

#.........这里部分代码省略.........
        toSave.write("openLoopNum: " + str(OpenLoop.openLoopNum) + "\n")

        SubElement(
            parent, "rosparam", {"file": "$(find ric_board)/config/" + self._fileName + ".yaml", "command": "load"}
        )
        launch.write(prettify(self.root))

        fileData = open("%s/DATA/%s.RIC" % (pkg, self._fileName), "wb")

        ls = []
        for dev in self.data:
            ls.append(dev.toDict())

        pickle.dump([self._fileName, self._ns, ls], fileData)

        toSave.close()
        launch.close()
        self.root = Element("launch")
        Servo.servoCount = 0
        Relay.relayCount = 0
        Urf.urfCount = 0
        Switch.switchCount = 0
        CloseLoop.closeLoop = 0
        OpenLoop.openLoopNum = 0
        # QMessageBox.information(self, 'File', 'File saved')

        QMessageBox.information(self, "File Saved", "To launch: $ roslaunch ric_board %s.launch" % self._fileName)
        self.pushButton_2.setEnabled(True)

    def addDiffSmooth(self):
        self.interruptHandler()
        self.newDevMode = True
        self.currentShowDev = VelocitySmoother(self.DevFrame, self.data)
        self.currentShowDev.showDetails()
        self.pushButton.clicked.connect(self.addDevToList)

    def addJoystick(self):
        self.interruptHandler()
        self.newDevMode = True
        self.currentShowDev = JoystickTeleop(self.DevFrame, self.data)
        self.currentShowDev.showDetails()
        self.pushButton.clicked.connect(self.addDevToList)

    def addKeyboard(self):
        self.interruptHandler()
        self.newDevMode = True
        self.currentShowDev = KeyboardTeleop(self.DevFrame, self.data)
        self.currentShowDev.showDetails()
        self.pushButton.clicked.connect(self.addDevToList)

    def addPPmReader(self):
        self.interruptHandler()
        self.newDevMode = True
        self.currentShowDev = PPMReader(self.DevFrame, self.data)
        self.currentShowDev.showDetails()
        self.pushButton.clicked.connect(self.addDevToList)

    def addSLAM(self):
        self.interruptHandler()
        self.newDevMode = True
        self.currentShowDev = Slam(self.DevFrame, self.data)
        self.currentShowDev.showDetails()
        self.pushButton.clicked.connect(self.addDevToList)

    def addRobotModel(self):
        self.interruptHandler()
开发者ID:nirlevi5,项目名称:bgumodo_ws,代码行数:70,代码来源:MainWindow.py


注:本文中的BAL.Devices.Relay.Relay.showDetails方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。