March 2018
Intermediate to advanced
1396 pages
42h 14m
English
In this step, we will create the main C++ file that contains the definition of the plugin. The file is teleop_pad.cpp, and you will get it from package src folder.
The main responsibilities of this file are as follows:
The following is the explanation of each section of the code:
TeleopPanel::TeleopPanel( QWidget* parent ) : rviz::Panel( parent ) , linear_velocity_( 0 ) , angular_velocity_( 0 ){
This is the constructor and initialize rviz::Panel with QWidget, setting linear and angular velocity as 0:
QVBoxLayout* topic_layout ...