
Chapter 4. Implementation 58
device manager
rosnode
main
ros
visualization
thread 1 thread 2
scene menu
visualization
menu
MainWindow
XML
database
Figure 4.18.: The internal structure of the visualization node.
4.5.1. The MainWindow class
The MainWindow class is the graphical framework for other graphical classes, such as the scene
menu, visualization menu and is used here as a collective term for different classes and functions
that do not belong to those two. Its tasks are:
• Providing a GUI framework for embedding other widgets as well as navigation services to
allow inter-switching.
• GUI widgets for database manipulation: adding, removing and changing of receivers and
transmitters.
• Other services, such as logging, saving the application settings and error handling.
Figure 4.19 shows the MainWindow class displaying the start menu.
The start menu contains several boxes with different information. The most important box is the
main-box, which enables manually synchronization of the internal database with the database of
the device manager node. Normally, the database is synchronized on start-up, but in special cases,
such as if the device manager was manipulated and restarted or the network was disconnected due
to an error, it allows synchronizing without having to restart the node. A time stamp indicates
the time of the last synchronization. The scene database-box provides functionality to import or
export the local database of the scene menu. Similar to the "set device list"-service of the device
Kommentare zu diesen Handbüchern