[ROS] RViz2 source code analysis (3): core class VisualizerApp

[ROS] Guo Laoer’s blog post: ROS directory

1. Brief description

VisualizerApp contains three main functions:

  • QApplication: The program mainly calls app_->processEvents() to handle refreshing the interface and dealing with splash screens.
  • VisualizationFrame: all window classes are here;
  • RosClientAbstractionIface contains rclcpp::Node: represents ROS node

2、VisualizationFrame

2.1 Layout

VisualizationFrame inherits from QMainWindow, which has a central area RenderPanel and a bunch of dock areas around it.
The dock area includes: DisplaysPanel, ViewsPanel, TimePanel, SelectionPanel and ToolPropertiesPanel

At the top are the menu bar and toolbar.
Insert image description here

2.2 RenderPanel

RenderPanel, a display panel, is used to display 3D scenes and forward mouse and key events. Various events are overloaded in the class.
by Visualizat

Guess you like

Origin blog.csdn.net/u010168781/article/details/134518100