wj1@wj1-vpc:~/PX4-Autopilot$ make px4_sitl gazebo
[0/4] Performing build step for 'sitl_gazebo'
[1/2] Building CXX object CMakeFiles/g.../gazebo_gimbal_controller_plugin.cpp.o
FAILED: CMakeFiles/gazebo_gimbal_controller_plugin.dir/src/gazebo_gimbal_controller_plugin.cpp.o 
/usr/bin/ccache /usr/bin/c++  -DLIBBULLET_VERSION=2.87 -DLIBBULLET_VERSION_GT_282 -Dgazebo_gimbal_controller_plugin_EXPORTS -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.0 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel_tools1 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/wj1/PX4-Autopilot/mavlink/include -I/usr/include/Paging -isystem /usr/include/opencv -I/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86_64-linux-gnu -O2 -g -DNDEBUG -fPIC   -Wno-deprecated-declarations -Wno-address-of-packed-member -I/usr/include/uuid -I/usr/include/x86_64-linux-gnu -std=gnu++1z -MD -MT CMakeFiles/gazebo_gimbal_controller_plugin.dir/src/gazebo_gimbal_controller_plugin.cpp.o -MF CMakeFiles/gazebo_gimbal_controller_plugin.dir/src/gazebo_gimbal_controller_plugin.cpp.o.d -o CMakeFiles/gazebo_gimbal_controller_plugin.dir/src/gazebo_gimbal_controller_plugin.cpp.o -c /home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp: In constructor ‘gazebo::GimbalControllerPlugin::GimbalControllerPlugin()’:
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:99:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘pitchCommand’; did you mean ‘pitchJoint’?
   this->pitchCommand = 0.5* M_PI;
         ^~~~~~~~~~~~
         pitchJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:100:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘rollCommand’; did you mean ‘rollJoint’?
   this->rollCommand = 0;
         ^~~~~~~~~~~
         rollJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:101:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawCommand’; did you mean ‘yawJoint’?
   this->yawCommand = 0;
         ^~~~~~~~~~
         yawJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:102:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘lastImuYaw’
   this->lastImuYaw = 0;
         ^~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp: In member function ‘virtual void gazebo::GimbalControllerPlugin::Init()’:
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:362:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘pitchSub’; did you mean ‘pitchPid’?
   this->pitchSub = this->node->Subscribe(pitchTopic,
         ^~~~~~~~
         pitchPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:363:31: error: ‘OnPitchStringMsg’ is not a member of ‘gazebo::GimbalControllerPlugin’
      &GimbalControllerPlugin::OnPitchStringMsg, this);
                               ^~~~~~~~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:367:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘rollSub’; did you mean ‘rollPid’?
   this->rollSub = this->node->Subscribe(rollTopic,
         ^~~~~~~
         rollPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:368:31: error: ‘OnRollStringMsg’ is not a member of ‘gazebo::GimbalControllerPlugin’
      &GimbalControllerPlugin::OnRollStringMsg, this);
                               ^~~~~~~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:372:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawSub’; did you mean ‘yawPid’?
   this->yawSub = this->node->Subscribe(yawTopic,
         ^~~~~~
         yawPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:373:31: error: ‘OnYawStringMsg’ is not a member of ‘gazebo::GimbalControllerPlugin’
      &GimbalControllerPlugin::OnYawStringMsg, this);
                               ^~~~~~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:383:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘pitchPub’; did you mean ‘pitchPid’?
   this->pitchPub = node->Advertise<gazebo::msgs::GzString>(pitchTopic);
         ^~~~~~~~
         pitchPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:389:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘rollPub’; did you mean ‘rollPid’?
   this->rollPub = node->Advertise<gazebo::msgs::GzString>(rollTopic);
         ^~~~~~~
         rollPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:395:9: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawPub’; did you mean ‘yawPid’?
   this->yawPub = node->Advertise<gazebo::msgs::GzString>(yawTopic);
         ^~~~~~
         yawPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:397:3: error: ‘imuSub’ was not declared in this scope
   imuSub = node->Subscribe("~/" + model->GetName() + "/imu", &GimbalControllerPlugin::ImuCallback, this);
   ^~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:397:87: error: ‘ImuCallback’ is not a member of ‘gazebo::GimbalControllerPlugin’
   imuSub = node->Subscribe("~/" + model->GetName() + "/imu", &GimbalControllerPlugin::ImuCallback, this);
                                                                                       ^~~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp: At global scope:
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:402:42: error: variable or field ‘ImuCallback’ declared void
 void GimbalControllerPlugin::ImuCallback(ImuPtr& imu_message)
                                          ^~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:402:42: error: ‘ImuPtr’ was not declared in this scope
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:402:50: error: ‘imu_message’ was not declared in this scope
 void GimbalControllerPlugin::ImuCallback(ImuPtr& imu_message)
                                                  ^~~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:413:64: error: no ‘void gazebo::GimbalControllerPlugin::OnPitchStringMsg(ConstAnyPtr&)’ member function declared in class ‘gazebo::GimbalControllerPlugin’
 void GimbalControllerPlugin::OnPitchStringMsg(ConstAnyPtr &_msg)
                                                                ^
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:420:63: error: no ‘void gazebo::GimbalControllerPlugin::OnRollStringMsg(ConstAnyPtr&)’ member function declared in class ‘gazebo::GimbalControllerPlugin’
 void GimbalControllerPlugin::OnRollStringMsg(ConstAnyPtr &_msg)
                                                               ^
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:427:62: error: no ‘void gazebo::GimbalControllerPlugin::OnYawStringMsg(ConstAnyPtr&)’ member function declared in class ‘gazebo::GimbalControllerPlugin’
 void GimbalControllerPlugin::OnYawStringMsg(ConstAnyPtr &_msg)
                                                              ^
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp: In member function ‘void gazebo::GimbalControllerPlugin::OnUpdate()’:
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:477:11: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawCommand’; did you mean ‘yawJoint’?
     this->yawCommand += this->lastImuYaw;
           ^~~~~~~~~~
           yawJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:477:31: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘lastImuYaw’
     this->yawCommand += this->lastImuYaw;
                               ^~~~~~~~~~
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:481:54: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘rollCommand’; did you mean ‘rollJoint’?
     double rollLimited = ignition::math::clamp(this->rollCommand,
                                                      ^~~~~~~~~~~
                                                      rollJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:484:55: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘pitchCommand’; did you mean ‘pitchJoint’?
     double pitchLimited = ignition::math::clamp(this->pitchCommand,
                                                       ^~~~~~~~~~~~
                                                       pitchJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:487:53: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawCommand’; did you mean ‘yawJoint’?
     double yawLimited = ignition::math::clamp(this->yawCommand,
                                                     ^~~~~~~~~~
                                                     yawJoint
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:625:11: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘pitchPub’; did you mean ‘pitchPid’?
     this->pitchPub->Publish(m);
           ^~~~~~~~
           pitchPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:629:11: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘rollPub’; did you mean ‘rollPid’?
     this->rollPub->Publish(m);
           ^~~~~~~
           rollPid
/home/wj1/PX4-Autopilot/Tools/sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:633:11: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawPub’; did you mean ‘yawPid’?
     this->yawPub->Publish(m);
           ^~~~~~
           yawPid
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-address-of-packed-member’
ninja: build stopped: subcommand failed.
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build 
cd /home/wj1/PX4-Autopilot/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build /home/wj1/PX4-Autopilot/build/px4_sitl_default/build_gazebo -- -j 1
ninja: build stopped: subcommand failed.
Makefile:230: recipe for target 'px4_sitl' failed
make: *** [px4_sitl] Error 1