February 2018
Beginner
580 pages
13h 20m
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 the src package folder.
The main responsibilities of this file are as follows:
The following is the explanation for 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