本文整理汇总了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()