dashboard.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 
00019 import rospy
00020 from wrapper_dashboard import WrapperDashboard
00021 
00022 ## @package: plugin
00023 ##
00024 ## @version 4.0
00025 ## @author  Matignon Martin
00026 ## @date    Last modified 28/02/2014
00027 
00028 ## @class Plugin
00029 ## @brief Plugin interface..
00030 class Dashboard(WrapperDashboard):
00031     
00032     def __init__(self, context):
00033         WrapperDashboard.__init__(self, context)
00034         
00035     def onCreate(self, param):
00036         self.logWarn("Dashboard %s.onCreate not implemented !"%self.getName())
00037     
00038     def onControlModeChanged(self, mode):
00039         self.logWarn("Dashboard %s.onControlModeChanged not implemented !"%self.getName())
00040         
00041     def onUserChanged(self, user):
00042         # Default rules, you can custom this method to set your rules
00043         if user.getUserPrivilege() >= self.getAccessRights():
00044             self.setPopupEnabled(True)
00045         else:
00046             self.setPopupEnabled(False)
00047     
00048     def onTranslate(self, lng):
00049         self.logWarn("Dashboard %s.onTranslate not implemented !"%self.getName())
00050     
00051     def onEmergencyStop(self, state):
00052         self.logWarn("Dashboard %s.onEmergencyStop not implemented !"%self.getName())
00053     
00054     def onDestroy(self):
00055         self.logWarn("Dashboard %s.onDestroy not implemented !"%self.getName())
00056     
00057 #End of file
00058 


airbus_cobot_gui
Author(s): Martin Matignon
autogenerated on Thu Jun 6 2019 17:59:19