Beispiel #1
0
class FrameViewerFrame(wx.Frame):
    def __init__(self, tf_interface):
        wx.Frame.__init__(self, None, -1, "Frame Viewer", size=(1024, 768))

        self.viewer = FrameViewerPanel(self, tf_interface)

        # Create menu
        menubar = wx.MenuBar()
        file = wx.Menu()
        file.Append(101, '&Load', 'Load a frame_viewer snapshot')
        file.Append(102, '&Save', 'Save a frame_viewer snapshot')
        file.Append(103, '&Export PDF', 'Export To PDF')
        menubar.Append(file, '&File')
        self.SetMenuBar(menubar)

        wx.EVT_MENU(self, 101, self.onLoad)
        wx.EVT_MENU(self, 102, self.onSave)
        wx.EVT_MENU(self, 103, self.onPDF)

    def onLoad(self, event):
        self.viewer.update_file_list(wx.LoadFileSelector("TF Snapshot", ".tf"))

    def onSave(self, event):
        self.viewer.tf_interface.save_yaml(
            wx.SaveFileSelector("TF Snapshot", ".tf"))

    def onPDF(self, event):
        self.viewer.tf_interface.save_pdf(
            wx.SaveFileSelector("PDF Export", ".pdf"))
Beispiel #2
0
    def __init__(self, tf_interface):
        wx.Frame.__init__(self, None, -1, "Frame Viewer", size=(1024, 768))

        self.viewer = FrameViewerPanel(self, tf_interface)

        # Create menu
        menubar = wx.MenuBar()
        file = wx.Menu()
        file.Append(101, '&Load', 'Load a frame_viewer snapshot')
        file.Append(102, '&Save', 'Save a frame_viewer snapshot')
        file.Append(103, '&Export PDF', 'Export To PDF')
        menubar.Append(file, '&File')
        self.SetMenuBar(menubar)

        wx.EVT_MENU(self, 101, self.onLoad)
        wx.EVT_MENU(self, 102, self.onSave)
        wx.EVT_MENU(self, 103, self.onPDF)
Beispiel #3
0
class FrameViewerFrame(wx.Frame):
    def __init__(self, tf_interface):
        wx.Frame.__init__(self, None, -1, "Frame Viewer", size=(1024,768))

        self.viewer = FrameViewerPanel(self, tf_interface)

        # Create menu
        menubar = wx.MenuBar()
        file = wx.Menu()
        file.Append(101, '&Load', 'Load a frame_viewer snapshot')
        file.Append(102, '&Save', 'Save a frame_viewer snapshot')
        file.Append(103, '&Export PDF', 'Export To PDF')
        menubar.Append(file, '&File')
        self.SetMenuBar(menubar)
       
        wx.EVT_MENU(self, 101, self.onLoad)
        wx.EVT_MENU(self, 102, self.onSave)
        wx.EVT_MENU(self, 103, self.onPDF)

    def onLoad(self, event): self.viewer.update_file_list(wx.LoadFileSelector("TF Snapshot", ".tf"))
    def onSave(self, event): self.viewer.tf_interface.save_yaml(wx.SaveFileSelector("TF Snapshot", ".tf"))
    def onPDF(self, event): self.viewer.tf_interface.save_pdf(wx.SaveFileSelector("PDF Export", ".pdf"))
Beispiel #4
0
    def __init__(self, tf_interface):
        wx.Frame.__init__(self, None, -1, "Frame Viewer", size=(1024,768))

        self.viewer = FrameViewerPanel(self, tf_interface)

        # Create menu
        menubar = wx.MenuBar()
        file = wx.Menu()
        file.Append(101, '&Load', 'Load a frame_viewer snapshot')
        file.Append(102, '&Save', 'Save a frame_viewer snapshot')
        file.Append(103, '&Export PDF', 'Export To PDF')
        menubar.Append(file, '&File')
        self.SetMenuBar(menubar)
       
        wx.EVT_MENU(self, 101, self.onLoad)
        wx.EVT_MENU(self, 102, self.onSave)
        wx.EVT_MENU(self, 103, self.onPDF)
    def __init__(self, timeline, parent):
        TopicMessageView.__init__(self, timeline, parent)

        self.tf_interface = TFInterface(use_listener=False)
        self.viewer = FrameViewerPanel(self.parent, self.tf_interface, False)
        self.buffer_length = roslib.rostime.Duration(10.0)