plugin.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # Copyright 2015 Airbus
00004 # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
00005 #
00006 # Licensed under the Apache License, Version 2.0 (the "License");
00007 # you may not use this file except in compliance with the License.
00008 # You may obtain a copy of the License at
00009 #
00010 #   http://www.apache.org/licenses/LICENSE-2.0
00011 #
00012 # Unless required by applicable law or agreed to in writing, software
00013 # distributed under the License is distributed on an "AS IS" BASIS,
00014 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 # See the License for the specific language governing permissions and
00016 # limitations under the License.
00017 
00018 import rospy
00019 import time
00020 import os
00021 import re
00022 import subprocess
00023 import rosnode
00024 
00025 from roslib.packages import get_pkg_dir
00026 
00027 from python_qt_binding.QtGui import *
00028 from python_qt_binding.QtCore import *
00029 
00030 from python_qt_binding import loadUi
00031 
00032 from table_monitoring_nodes import TableMonitoringNodes
00033 # from table_launch_nodes import TableLaunchNodes
00034 
00035 from airbus_plugin_node_manager.res import R
00036 
00037 from airbus_cobot_gui import Plugin, ControlMode
00038 
00039 class PluginNodeManager(Plugin):
00040     
00041     def __init__(self, context):
00042         Plugin.__init__(self, context)
00043         
00044     def onCreate(self, param):
00045         
00046         # Extend the widget with all attributes and children from UI file
00047         loadUi(R.layouts.mainwindow, self)
00048         
00049         self.monitoring = TableMonitoringNodes(self)
00050         self.monitoring.onStart()
00051         
00052     def onPause(self):
00053         pass
00054     
00055     def onResume(self):
00056         pass
00057     
00058     def onControlModeChanged(self, mode):
00059         pass
00060         
00061     def onUserChanged(self, user_info):
00062         pass
00063     
00064     def onTranslate(self, lng):
00065         self.monitoring.translate(lng)
00066     
00067     def onEmergencyStop(self, state):
00068         pass
00069     
00070     def onDestroy(self):
00071         self.monitoring.onClose()
00072     
00073 #End of file


airbus_plugin_node_manager
Author(s): Matignon Martin
autogenerated on Thu Jun 6 2019 17:59:23