pose_view.py
Go to the documentation of this file.
1 # Copyright (c) 2011, Dorian Scholz, TU Darmstadt
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following
12 # disclaimer in the documentation and/or other materials provided
13 # with the distribution.
14 # * Neither the name of the TU Darmstadt nor the names of its
15 # contributors may be used to endorse or promote products derived
16 # from this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
30 
31 from rqt_gui_py.plugin import Plugin
32 
33 from .pose_view_widget import PoseViewWidget
34 
35 
37 
38  def __init__(self, context):
39  super(PoseView, self).__init__(context)
40  self.setObjectName('PoseView')
41 
42  self._widget = PoseViewWidget(self)
43  if context.serial_number() > 1:
44  self._widget.setWindowTitle(self._widget.windowTitle() + (' (%d)' % context.serial_number()))
45  context.add_widget(self._widget)
46 
47  def save_settings(self, plugin_settings, instance_settings):
48  self._widget.save_settings(plugin_settings, instance_settings)
49 
50  def restore_settings(self, plugin_settings, instance_settings):
51  self._widget.restore_settings(plugin_settings, instance_settings)
52 
53  def shutdown_plugin(self):
54  self._widget.shutdown_plugin()
def save_settings(self, plugin_settings, instance_settings)
Definition: pose_view.py:47
def restore_settings(self, plugin_settings, instance_settings)
Definition: pose_view.py:50
def __init__(self, context)
Definition: pose_view.py:38


rqt_pose_view
Author(s): Dorian Scholz
autogenerated on Sat Jun 8 2019 18:05:11