#! /usr/bin/env python # -*- coding: utf-8 -*- # import os from PyQt4 import QtCore, QtGui, uic from PyQt4.QtGui import * import sys from rocup.ui.pyqt import PyQtWindow from superros.comm import RosNode #⬢⬢⬢⬢⬢➤ NODE node = RosNode("ui_window_example") ui_file = node.getFileInPackage("rocup", "data/ui/main.ui") w = PyQtWindow(uifile=ui_file) w.run()
selected_controllers.append("force_spring") return selected_controllers def getAxis(self, axis_name): sign = int("{}1".format(axis_name[0])) axis = axis_name[1] if axis == "x": return [sign, 0, 0] elif axis == "y": return [0, sign, 0] elif axis == "z": return [0, 0, sign] else: return [0, 0, 0] ui_file = node.getFileInPackage("rocup", "data/ui/robot_gui.ui") w = CustomWindow(uifile=ui_file, node=node) # def loadCommand(self): # commands = [] # n_list = int(1) # with open('command_list_{}.txt'.format(n_list)) as inputfile: # for line in inputfile: # commands.append(line) # commands = ["shape_table", # "OPEN_GRIPPER", # "TACTILE_RESET", # "shape_camera_on_table", # "FILTER Terminal0", # "Terminal0_approach_1 gripper",