tu-darmstadt-ros-pkg / hector_quadrotor

hector_quadrotor contains packages related to modeling, control and simulation of quadrotor UAV systems.
Other
386 stars 277 forks source link

catkin_make #78

Open yueshukun opened 7 years ago

yueshukun commented 7 years ago

Base path: /home/yueshukun/hector_quadrotor_tutorial Source space: /home/yueshukun/hector_quadrotor_tutorial/src Build space: /home/yueshukun/hector_quadrotor_tutorial/build Devel space: /home/yueshukun/hector_quadrotor_tutorial/devel Install space: /home/yueshukun/hector_quadrotor_tutorial/install

Running command: "make cmake_check_build_system" in "/home/yueshukun/hector_quadrotor_tutorial/build"

Running command: "make -j8 -l8" in "/home/yueshukun/hector_quadrotor_tutorial/build"

[ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_RawRC [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_Altimeter [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_VelocityXYCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_ThrustCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_MotorStatus [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_RawMagnetic [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_HeightCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_HeadingCommand [ 0%] Built target std_msgs_generate_messages_lisp [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_Compass [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_ServoCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_RawImu [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_Supply [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_PositionXYCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_ControllerState [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_AttitudeCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_RC [ 0%] Built target std_msgs_generate_messages_eus [ 0%] Built target std_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_MotorPWM [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_RuddersCommand [ 0%] Built target std_msgs_generate_messages_nodejs [ 0%] Built target nav_msgs_generate_messages_nodejs [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_VelocityZCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_MotorCommand [ 0%] Built target _hector_uav_msgs_generate_messages_check_deps_YawrateCommand [ 0%] Built target nav_msgs_generate_messages_lisp [ 0%] Built target nav_msgs_generate_messages_eus [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetSearchPosition [ 0%] Built target nav_msgs_generate_messages_cpp [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetDistanceToObstacle [ 0%] Built target nav_msgs_generate_messages_py [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetRobotTrajectory [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetRecoveryInfo [ 0%] Built target rosgraph_msgs_generate_messages_py [ 0%] Built target _hector_nav_msgs_generate_messages_check_deps_GetNormal [ 0%] Built target _catkin_empty_exported_target [ 0%] Built target actionlib_msgs_generate_messages_lisp [ 0%] Built target actionlib_msgs_generate_messages_eus [ 0%] Built target actionlib_msgs_generate_messages_cpp [ 0%] Built target actionlib_msgs_generate_messages_py [ 0%] Built target geometry_msgs_generate_messages_cpp [ 0%] Built target geometry_msgs_generate_messages_lisp [ 0%] Built target geometry_msgs_generate_messages_eus [ 0%] Built target geometry_msgs_generate_messages_nodejs [ 0%] Built target roscpp_generate_messages_lisp [ 0%] Built target roscpp_generate_messages_nodejs [ 0%] Built target actionlib_msgs_generate_messages_nodejs [ 0%] Built target geometry_msgs_generate_messages_py [ 0%] Built target rosgraph_msgs_generate_messages_nodejs [ 0%] Built target roscpp_generate_messages_eus [ 0%] Built target roscpp_generate_messages_cpp [ 0%] Built target roscpp_generate_messages_py [ 0%] Built target rosgraph_msgs_generate_messages_eus [ 0%] Built target rosgraph_msgs_generate_messages_cpp [ 0%] Built target rosgraph_msgs_generate_messages_lisp [ 0%] Built target sensor_msgs_generate_messages_lisp [ 0%] Built target sensor_msgs_generate_messages_nodejs [ 0%] Built target sensor_msgs_generate_messages_eus [ 1%] Built target hector_quadrotor_aerodynamics [ 1%] Built target sensor_msgs_generate_messages_cpp [ 1%] Built target sensor_msgs_generate_messages_py [ 1%] Building CXX object hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_gazebo_reset_plugin.dir/src/reset_plugin.cpp.o [ 2%] Built target map_to_image_node [ 2%] Building CXX object hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_6w.dir/src/diffdrive_plugin_6w.cpp.o [ 2%] Built target _driver_base_generate_messages_check_deps_ConfigValue [ 2%] Built target hector_gazebo_plugins_gencfg [ 2%] Built target _driver_base_generate_messages_check_deps_ConfigString [ 2%] Built target _driver_base_generate_messages_check_deps_SensorLevels [ 2%] Built target _hector_gazebo_plugins_generate_messages_check_deps_SetBias Scanning dependencies of target pose_and_orientation_to_imu_node [ 2%] Building CXX object hector_gazebo/hector_gazebo_plugins/CMakeFiles/gazebo_ros_force_based_move.dir/src/gazebo_ros_force_based_move.cpp.o [ 3%] Building CXX object hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/src/diffdrive_plugin_multi_wheel.cpp.o Scanning dependencies of target actionlib_generate_messages_eus [ 4%] Built target imu_attitude_to_tf_node [ 5%] Building CXX object hector_slam/hector_imu_tools/CMakeFiles/pose_and_orientation_to_imu_node.dir/src/pose_and_orientation_to_imu_node.cpp.o [ 5%] Building CXX object hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_servo_plugin.dir/src/servo_plugin.cpp.o Scanning dependencies of target visualization_msgs_generate_messages_nodejs [ 5%] Built target actionlib_generate_messages_eus [ 5%] Built target visualization_msgs_generate_messages_nodejs Scanning dependencies of target visualization_msgs_generate_messages_lisp [ 5%] Built target visualization_msgs_generate_messages_lisp Scanning dependencies of target visualization_msgs_generate_messages_py Scanning dependencies of target visualization_msgs_generate_messages_eus [ 5%] Built target visualization_msgs_generate_messages_py [ 5%] Built target visualization_msgs_generate_messages_eus Scanning dependencies of target visualization_msgs_generate_messages_cpp [ 5%] Built target visualization_msgs_generate_messages_cpp Scanning dependencies of target tf2_msgs_generate_messages_py Scanning dependencies of target tf_generate_messages_cpp [ 5%] Built target tf2_msgs_generate_messages_py Scanning dependencies of target tf2_msgs_generate_messages_eus [ 5%] Built target tf2_msgs_generate_messages_eus [ 5%] Built target tf_generate_messages_cpp Scanning dependencies of target tf2_msgs_generate_messages_nodejs Scanning dependencies of target tf_generate_messages_lisp [ 5%] Built target tf2_msgs_generate_messages_nodejs [ 5%] Built target tf_generate_messages_lisp Scanning dependencies of target tf2_msgs_generate_messages_lisp Scanning dependencies of target tf_generate_messages_nodejs [ 5%] Built target tf_generate_messages_nodejs [ 5%] Built target tf2_msgs_generate_messages_lisp Scanning dependencies of target tf_generate_messages_eus Scanning dependencies of target actionlib_generate_messages_cpp [ 5%] Built target tf_generate_messages_eus [ 5%] Built target actionlib_generate_messages_cpp Scanning dependencies of target tf2_msgs_generate_messages_cpp Scanning dependencies of target tf_generate_messages_py [ 5%] Built target tf2_msgs_generate_messages_cpp [ 5%] Built target tf_generate_messages_py Scanning dependencies of target actionlib_generate_messages_nodejs [ 5%] Built target actionlib_generate_messages_nodejs Scanning dependencies of target actionlib_generate_messages_lisp Scanning dependencies of target actionlib_generate_messages_py [ 5%] Built target actionlib_generate_messages_lisp [ 5%] Built target actionlib_generate_messages_py Scanning dependencies of target hector_pose_estimation Scanning dependencies of target message_to_tf [ 5%] Building CXX object hector_localization/message_to_tf/CMakeFiles/message_to_tf.dir/src/message_to_tf.cpp.o [ 6%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/global_reference.cpp.o In file included from /usr/include/c++/5/random:35:0, from /usr/include/ignition/math2/ignition/math/Rand.hh:20, from /usr/include/ignition/math2/ignition/math.hh:18, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/diffdrive_plugin_6w.h:30, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/diffdrive_plugin_6w.cpp:36: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from /usr/include/c++/5/random:35:0, from /usr/include/ignition/math2/ignition/math/Rand.hh:20, from /usr/include/ignition/math2/ignition/math.hh:18, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/servo_plugin.h:25, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/servo_plugin.cpp:29: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from /usr/include/c++/5/random:35:0, from /usr/include/ignition/math2/ignition/math/Rand.hh:20, from /usr/include/ignition/math2/ignition/math.hh:18, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from /usr/include/c++/5/random:35:0, from /usr/include/ignition/math2/ignition/math/Rand.hh:20, from /usr/include/ignition/math2/ignition/math.hh:18, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Battery.hh:25, from /usr/include/gazebo-7/gazebo/common/common.hh:8, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/diffdrive_plugin_multi_wheel.h:80, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/diffdrive_plugin_multi_wheel.cpp:78: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from /usr/include/c++/5/random:35:0, from /usr/include/ignition/math2/ignition/math/Rand.hh:20, from /usr/include/ignition/math2/ignition/math.hh:18, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Battery.hh:25, from /usr/include/gazebo-7/gazebo/common/common.hh:8, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/gazebo_ros_force_based_move.h:33, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/gazebo_ros_force_based_move.cpp:26: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30:0, from /usr/include/gazebo-7/gazebo/physics/Model.hh:34, from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24, from /usr/include/gazebo-7/gazebo/physics/physics.hh:2, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/diffdrive_plugin_multi_wheel.h:81, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/diffdrive_plugin_multi_wheel.cpp:78: /usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: 没有那个文件或目录 compilation terminated. hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/build.make:62: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/src/diffdrive_plugin_multi_wheel.cpp.o' failed make[2]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/src/diffdrive_plugin_multi_wheel.cpp.o] Error 1 CMakeFiles/Makefile2:6265: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/all' failed make[1]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_multi_wheel.dir/all] Error 2 make[1]: 正在等待未完成的任务.... [ 6%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/pose_estimation.cpp.o In file included from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30:0, from /usr/include/gazebo-7/gazebo/physics/Model.hh:34, from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24, from /usr/include/gazebo-7/gazebo/physics/physics.hh:2, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/gazebo_ros_force_based_move.h:34, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/gazebo_ros_force_based_move.cpp:26: /usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: 没有那个文件或目录 compilation terminated. hector_gazebo/hector_gazebo_plugins/CMakeFiles/gazebo_ros_force_based_move.dir/build.make:62: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/gazebo_ros_force_based_move.dir/src/gazebo_ros_force_based_move.cpp.o' failed make[2]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/gazebo_ros_force_based_move.dir/src/gazebo_ros_force_based_move.cpp.o] Error 1 CMakeFiles/Makefile2:6335: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/gazebo_ros_force_based_move.dir/all' failed make[1]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/gazebo_ros_force_based_move.dir/all] Error 2 [ 6%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/parameters.cpp.o In file included from /usr/include/sdformat-4.0/sdf/sdf.hh:3:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/sdformat-4.0/sdf/Console.hh:55:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ConsolePtr; ^ /usr/include/sdformat-4.0/sdf/Console.hh:96:20: error: ‘ConsolePtr’ does not name a type public: static ConsolePtr Instance(); ^ /usr/include/sdformat-4.0/sdf/Console.hh:118:19: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type private: std::unique_ptr dataPtr; ^ /usr/include/sdformat-4.0/sdf/Console.hh: In member function ‘sdf::Console::ConsoleStream& sdf::Console::ConsoleStream::operator<<(const T&)’: /usr/include/sdformat-4.0/sdf/Console.hh:145:9: error: ‘Instance’ is not a member of ‘sdf::Console’ if (Console::Instance()->dataPtr->logFileStream.is_open()) ^ /usr/include/sdformat-4.0/sdf/Console.hh:147:7: error: ‘Instance’ is not a member of ‘sdf::Console’ Console::Instance()->dataPtr->logFileStream << _rhs; ^ /usr/include/sdformat-4.0/sdf/Console.hh:148:7: error: ‘Instance’ is not a member of ‘sdf::Console’ Console::Instance()->dataPtr->logFileStream.flush(); ^ In file included from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30:0, from /usr/include/gazebo-7/gazebo/physics/Model.hh:34, from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24, from /usr/include/gazebo-7/gazebo/physics/physics.hh:2, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/diffdrive_plugin_6w.cpp:38: /usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: 没有那个文件或目录 compilation terminated. In file included from /usr/include/ignition/math2/ignition/math/AffineException.hh:21:0, from /usr/include/ignition/math2/ignition/math.hh:3, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/ignition/math2/ignition/math/Helpers.hh: In function ‘T ignition::math::precision(const T&, const unsigned int&)’: /usr/include/ignition/math2/ignition/math/Helpers.hh:242:14: error: ‘round’ is not a member of ‘std’ return std::round(_a pow(10, _precision)) / pow(10, _precision); ^ /usr/include/ignition/math2/ignition/math/Helpers.hh:242:14: note: suggested alternatives: In file included from /usr/include/features.h:367:0, from /usr/include/unistd.h:25, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:30, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: ‘round’ MATHCALLX (round,, (Mdouble x), (const)); ^ In file included from /usr/include/boost/math/special_functions/math_fwd.hpp:26:0, from /usr/include/boost/math/special_functions/sign.hpp:17, from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34, from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64, from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53, from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34, from /usr/include/boost/lexical_cast.hpp:32, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/math/special_functions/detail/round_fwd.hpp:44:42: note: ‘boost::math::round’ typename tools::promote_args::type round(const T& v); ^ hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_6w.dir/build.make:62: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_6w.dir/src/diffdrive_plugin_6w.cpp.o' failed make[2]: ** [hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_6w.dir/src/diffdrive_plugin_6w.cpp.o] Error 1 CMakeFiles/Makefile2:5239: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_6w.dir/all' failed make[1]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/diffdrive_plugin_6w.dir/all] Error 2 In file included from /usr/include/ignition/math2/ignition/math.hh:6:0, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/ignition/math2/ignition/math/Filter.hh: At global scope: /usr/include/ignition/math2/ignition/math/Filter.hh:57:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: T y0{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:57:22: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T y0{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:57:23: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T y0{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:67:27: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 public: OnePole() = default; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:94:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: double a0 = 0; ^ In file included from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30:0, from /usr/include/gazebo-7/gazebo/physics/Model.hh:34, from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24, from /usr/include/gazebo-7/gazebo/physics/physics.hh:2, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/servo_plugin.cpp:31: /usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: 没有那个文件或目录 compilation terminated. /usr/include/ignition/math2/ignition/math/Filter.hh:97:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: double b1 = 0; ^ [ 7%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/types.cpp.o /usr/include/ignition/math2/ignition/math/Filter.hh:157:26: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 public: BiQuad() = default; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:215:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: double a0 = 0, ^ /usr/include/ignition/math2/ignition/math/Filter.hh:216:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 a1 = 0, ^ /usr/include/ignition/math2/ignition/math/Filter.hh:217:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 a2 = 0, ^ /usr/include/ignition/math2/ignition/math/Filter.hh:218:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 b0 = 0, ^ /usr/include/ignition/math2/ignition/math/Filter.hh:219:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 b1 = 0, ^ /usr/include/ignition/math2/ignition/math/Filter.hh:220:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 b2 = 0; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:35: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:22: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:23: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:34: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:35: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:40: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ /usr/include/ignition/math2/ignition/math/Filter.hh:223:41: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 protected: T x1{}, x2{}, y1{}, y2{}; ^ hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_servo_plugin.dir/build.make:62: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_servo_plugin.dir/src/servo_plugin.cpp.o' failed make[2]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_servo_plugin.dir/src/servo_plugin.cpp.o] Error 1 CMakeFiles/Makefile2:6579: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_servo_plugin.dir/all' failed make[1]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_servo_plugin.dir/all] Error 2 In file included from /usr/include/ignition/math2/ignition/math.hh:12:0, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/ignition/math2/ignition/math/Line3.hh:35:25: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 public: Line3() = default; ^ In file included from /usr/include/ignition/math2/ignition/math.hh:14:0, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/ignition/math2/ignition/math/Matrix4.hh: In constructor ‘ignition::math::Matrix4::Matrix4(const ignition::math::Pose3&)’: /usr/include/ignition/math2/ignition/math/Matrix4.hh:108:67: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 public: Matrix4(const Pose3 &_pose) : Matrix4(_pose.Rot()) ^ In file included from /usr/include/ignition/math2/ignition/math.hh:18:0, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/ignition/math2/ignition/math/Rand.hh: At global scope: /usr/include/ignition/math2/ignition/math/Rand.hh:31:18: error: ‘mt19937’ in namespace ‘std’ does not name a type typedef std::mt19937 GeneratorType; ^ /usr/include/ignition/math2/ignition/math/Rand.hh:34:18: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a template type typedef std::uniform_real_distribution UniformRealDist; ^ /usr/include/ignition/math2/ignition/math/Rand.hh:37:18: error: ‘normal_distribution’ in namespace ‘std’ does not name a template type typedef std::normal_distribution NormalRealDist; ^ /usr/include/ignition/math2/ignition/math/Rand.hh:40:18: error: ‘uniform_int_distribution’ in namespace ‘std’ does not name a template type typedef std::uniform_int_distribution UniformIntDist; ^ /usr/include/ignition/math2/ignition/math/Rand.hh:77:23: error: ‘GeneratorType’ does not name a type private: static GeneratorType randGenerator; ^ [ 7%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/state.cpp.o In file included from /usr/include/ignition/math2/ignition/math.hh:22:0, from /usr/include/sdformat-4.0/sdf/Param.hh:34, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/ignition/math2/ignition/math/Triangle.hh:36:28: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 public: Triangle() = default; ^ /usr/include/ignition/math2/ignition/math/Triangle.hh: In member function ‘bool ignition::math::Triangle::Intersects(const ignition::math::Line2&, ignition::math::Vector2&, ignition::math::Vector2&) const’: /usr/include/ignition/math2/ignition/math/Triangle.hh:181:16: error: ‘iter’ does not name a type auto iter = points.begin(); ^ /usr/include/ignition/math2/ignition/math/Triangle.hh:183:20: error: ‘iter’ was not declared in this scope _ipt1 = iter; ^ /usr/include/ignition/math2/ignition/math/Triangle.hh:193:16: error: ‘iter’ does not name a type auto iter = points.begin(); ^ /usr/include/ignition/math2/ignition/math/Triangle.hh:194:21: error: ‘iter’ was not declared in this scope _ipt1 = *(iter++); ^ In file included from /usr/include/sdformat-4.0/sdf/Element.hh:24:0, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/sdformat-4.0/sdf/Param.hh: At global scope: /usr/include/sdformat-4.0/sdf/Param.hh:55:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ParamPtr; ^ /usr/include/sdformat-4.0/sdf/Param.hh:59:23: error: ‘ParamPtr’ was not declared in this scope typedef std::vector Param_V; ^ /usr/include/sdformat-4.0/sdf/Param.hh:59:31: error: template argument 1 is invalid typedef std::vector Param_V; ^ /usr/include/sdformat-4.0/sdf/Param.hh:59:31: error: template argument 2 is invalid /usr/include/sdformat-4.0/sdf/Param.hh:127:13: error: ‘ParamPtr’ does not name a type public: ParamPtr Clone() const; ^ /usr/include/sdformat-4.0/sdf/Param.hh:221:18: error: ‘function’ in namespace ‘std’ does not name a template type public: std::function<boost::any ()> updateFunc; ^ /usr/include/sdformat-4.0/sdf/Param.hh: In member function ‘void sdf::Param::SetUpdateFunc(T)’: /usr/include/sdformat-4.0/sdf/Param.hh:252:20: error: ‘class sdf::ParamPrivate’ has no member named ‘updateFunc’ this->dataPtr->updateFunc = _updateFunc; ^ In file included from /usr/include/sdformat-4.0/sdf/sdf.hh:3:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/sdformat-4.0/sdf/Param.hh: In member function ‘bool sdf::Param::Set(const T&)’: /usr/include/sdformat-4.0/sdf/Console.hh:47:19: error: ‘Instance’ is not a member of ‘sdf::Console’

define sdferr (sdf::Console::Instance()->ColorMsg("Error", \

               ^

/usr/include/sdformat-4.0/sdf/Param.hh:265:7: note: in expansion of macro ‘sdferr’ sdferr << "Unable to set parameter[" ^ /usr/include/sdformat-4.0/sdf/Param.hh: In member function ‘bool sdf::Param::Get(T&) const’: /usr/include/sdformat-4.0/sdf/Console.hh:47:19: error: ‘Instance’ is not a member of ‘sdf::Console’

define sdferr (sdf::Console::Instance()->ColorMsg("Error", \

               ^

/usr/include/sdformat-4.0/sdf/Param.hh:298:7: note: in expansion of macro ‘sdferr’ sdferr << "Unable to convert parameter[" ^ /usr/include/sdformat-4.0/sdf/Param.hh: In member function ‘bool sdf::Param::GetDefault(T&) const’: /usr/include/sdformat-4.0/sdf/Console.hh:47:19: error: ‘Instance’ is not a member of ‘sdf::Console’

define sdferr (sdf::Console::Instance()->ColorMsg("Error", \

               ^

/usr/include/sdformat-4.0/sdf/Param.hh:318:7: note: in expansion of macro ‘sdferr’ sdferr << "Unable to convert parameter[" ^ /usr/include/sdformat-4.0/sdf/Param.hh: In member function ‘void sdf::Param::Init(const string&)’: /usr/include/sdformat-4.0/sdf/Console.hh:47:19: error: ‘Instance’ is not a member of ‘sdf::Console’

define sdferr (sdf::Console::Instance()->ColorMsg("Error", \

               ^

/usr/include/sdformat-4.0/sdf/Param.hh:350:9: note: in expansion of macro ‘sdferr’ sdferr << "Unable to init parameter value from string[" ^ In file included from /usr/include/sdformat-4.0/sdf/sdf.hh:5:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/sdformat-4.0/sdf/Element.hh: At global scope: /usr/include/sdformat-4.0/sdf/Element.hh:53:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ElementPtr; ^ /usr/include/sdformat-4.0/sdf/Element.hh:57:16: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type typedef std::weak_ptr ElementWeakPtr; ^ /usr/include/sdformat-4.0/sdf/Element.hh:61:23: error: ‘ElementPtr’ was not declared in this scope typedef std::vector ElementPtr_V; ^ /usr/include/sdformat-4.0/sdf/Element.hh:61:33: error: template argument 1 is invalid typedef std::vector ElementPtr_V; ^ /usr/include/sdformat-4.0/sdf/Element.hh:61:33: error: template argument 2 is invalid /usr/include/sdformat-4.0/sdf/Element.hh:69:40: error: expected template-name before ‘<’ token public std::enable_shared_from_this ^ /usr/include/sdformat-4.0/sdf/Element.hh:69:40: error: expected ‘{’ before ‘<’ token /usr/include/sdformat-4.0/sdf/Element.hh:69:40: error: expected unqualified-id before ‘<’ token /usr/include/sdformat-4.0/sdf/Element.hh:297:13: error: ‘ElementWeakPtr’ does not name a type public: ElementWeakPtr parent; ^ /usr/include/sdformat-4.0/sdf/Element.hh:303:13: error: ‘ParamPtr’ does not name a type public: ParamPtr value; ^ /usr/include/sdformat-4.0/sdf/Element.hh:320:41: error: invalid use of incomplete type ‘class sdf::Element’ T Element::Get(const std::string &_key) ^ /usr/include/sdformat-4.0/sdf/Element.hh:68:26: note: forward declaration of ‘class sdf::Element’ class SDFORMAT_VISIBLE Element : ^ /usr/include/sdformat-4.0/sdf/Element.hh:343:36: error: invalid use of incomplete type ‘class sdf::Element’ bool Element::Set(const T &_value) ^ /usr/include/sdformat-4.0/sdf/Element.hh:68:26: note: forward declaration of ‘class sdf::Element’ class SDFORMAT_VISIBLE Element : ^ In file included from /usr/include/sdformat-4.0/sdf/parser.hh:23:0, from /usr/include/sdformat-4.0/sdf/sdf.hh:8, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/sdformat-4.0/sdf/SDFImpl.hh:46:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr SDFPtr; ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:74:29: error: variable or field ‘setFindCallback’ declared void void setFindCallback(std::function<std::string (const std::string &)> _cb); ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:74:24: error: ‘function’ is not a member of ‘std’ void setFindCallback(std::function<std::string (const std::string &)> _cb); ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:74:50: error: expected primary-expression before ‘(’ token void setFindCallback(std::function<std::string (const std::string &)> _cb); ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:74:51: error: expected primary-expression before ‘const’ void setFindCallback(std::function<std::string (const std::string &)> _cb); ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:74:73: error: ‘_cb’ was not declared in this scope void setFindCallback(std::function<std::string (const std::string &)> _cb); ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:94:13: error: ‘ElementPtr’ does not name a type public: ElementPtr Root() const; ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:98:29: error: ‘ElementPtr’ does not name a type public: void Root(const ElementPtr _root); ^ /usr/include/sdformat-4.0/sdf/SDFImpl.hh:117:13: error: ‘ElementPtr’ does not name a type public: ElementPtr root SDF_DEPRECATED(4.0); ^ In file included from /usr/include/sdformat-4.0/sdf/sdf.hh:8:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/sdformat-4.0/sdf/parser.hh:32:13: error: ‘SDFPtr’ was not declared in this scope bool init(SDFPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:36:47: error: ‘SDFPtr’ has not been declared bool initFile(const std::string &_filename, SDFPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:40:47: error: ‘ElementPtr’ has not been declared bool initFile(const std::string &_filename, ElementPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:44:50: error: ‘SDFPtr’ has not been declared bool initString(const std::string &_xmlString, SDFPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:48:40: error: ‘SDFPtr’ has not been declared bool initDoc(TiXmlDocument _xmlDoc, SDFPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:52:40: error: ‘ElementPtr’ has not been declared bool initDoc(TiXmlDocument _xmlDoc, ElementPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:56:36: error: ‘ElementPtr’ has not been declared bool initXml(TiXmlElement _xml, ElementPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:60:47: error: ‘SDFPtr’ has not been declared bool readFile(const std::string &_filename, SDFPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:64:50: error: ‘SDFPtr’ has not been declared bool readString(const std::string &_xmlString, SDFPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:67:50: error: ‘ElementPtr’ has not been declared bool readString(const std::string &_xmlString, ElementPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:71:40: error: ‘SDFPtr’ has not been declared bool readDoc(TiXmlDocument _xmlDoc, SDFPtr _sdf, const std::string &_source); ^ /usr/include/sdformat-4.0/sdf/parser.hh:74:40: error: ‘ElementPtr’ has not been declared bool readDoc(TiXmlDocument _xmlDoc, ElementPtr _sdf, ^ /usr/include/sdformat-4.0/sdf/parser.hh:79:36: error: ‘ElementPtr’ has not been declared bool readXml(TiXmlElement _xml, ElementPtr _sdf); ^ /usr/include/sdformat-4.0/sdf/parser.hh:82:21: error: variable or field ‘copyChildren’ declared void void copyChildren(ElementPtr _sdf, TiXmlElement _xml); ^ /usr/include/sdformat-4.0/sdf/parser.hh:82:21: error: ‘ElementPtr’ was not declared in this scope /usr/include/sdformat-4.0/sdf/parser.hh:82:51: error: expected primary-expression before ‘’ token void copyChildren(ElementPtr _sdf, TiXmlElement _xml); ^ /usr/include/sdformat-4.0/sdf/parser.hh:82:52: error: ‘_xml’ was not declared in this scope void copyChildren(ElementPtr _sdf, TiXmlElement _xml); ^ /usr/include/sdformat-4.0/sdf/parser.hh:85:23: error: variable or field ‘addNestedModel’ declared void void addNestedModel(ElementPtr _sdf, ElementPtr _includeSDF); ^ /usr/include/sdformat-4.0/sdf/parser.hh:85:23: error: ‘ElementPtr’ was not declared in this scope /usr/include/sdformat-4.0/sdf/parser.hh:85:40: error: ‘ElementPtr’ was not declared in this scope void addNestedModel(ElementPtr _sdf, ElementPtr _includeSDF); ^ In file included from /usr/include/gazebo-7/gazebo/common/Plugin.hh:44:0, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/CommonTypes.hh:144:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr BatteryPtr; ^ In file included from /usr/include/gazebo-7/gazebo/common/SystemPaths.hh:36:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:45, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/Event.hh:155:20: error: ‘atomic_bool’ in namespace ‘std’ does not name a type public: std::atomic_bool on; ^ /usr/include/gazebo-7/gazebo/common/Event.hh:158:20: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type public: std::shared_ptr<boost::function > callback; ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In constructor ‘gazebo::event::EventConnection::EventConnection(bool, boost::function*)’: /usr/include/gazebo-7/gazebo/common/Event.hh:147:17: error: class ‘gazebo::event::EventConnection’ does not have any field named ‘callback’ : callback(_cb) ^ /usr/include/gazebo-7/gazebo/common/Event.hh: At global scope: /usr/include/gazebo-7/gazebo/common/Event.hh:168:29: error: ‘shared_ptr’ is not a member of ‘std’ typedef std::map<int, std::shared_ptr<EventConnection > > ^ /usr/include/gazebo-7/gazebo/common/Event.hh:168:29: note: suggested alternative: In file included from /usr/include/boost/throw_exception.hpp:42:0, from /usr/include/boost/lexical_cast/bad_lexical_cast.hpp:28, from /usr/include/boost/lexical_cast.hpp:31, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/exception/exception.hpp:148:11: note: ‘boost::shared_ptr’ class shared_ptr; ^ In file included from /usr/include/gazebo-7/gazebo/common/SystemPaths.hh:36:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:45, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/Event.hh:168:29: error: ‘shared_ptr’ is not a member of ‘std’ typedef std::map<int, std::shared_ptr<EventConnection > > ^ /usr/include/gazebo-7/gazebo/common/Event.hh:168:29: note: suggested alternative: In file included from /usr/include/boost/throw_exception.hpp:42:0, from /usr/include/boost/lexical_cast/bad_lexical_cast.hpp:28, from /usr/include/boost/lexical_cast.hpp:31, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/exception/exception.hpp:148:11: note: ‘boost::shared_ptr’ class shared_ptr; ^ In file included from /usr/include/gazebo-7/gazebo/common/SystemPaths.hh:36:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:45, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/Event.hh:168:64: error: template argument 2 is invalid typedef std::map<int, std::shared_ptr<EventConnection > > ^ /usr/include/gazebo-7/gazebo/common/Event.hh:168:64: error: template argument 4 is invalid /usr/include/gazebo-7/gazebo/common/Event.hh:168:66: error: expected unqualified-id before ‘>’ token typedef std::map<int, std::shared_ptr<EventConnection > > ^ /usr/include/gazebo-7/gazebo/common/Event.hh:172:15: error: ‘EvtConnectionMap’ does not name a type public: EvtConnectionMap connections; ^ /usr/include/gazebo-7/gazebo/common/Event.hh:175:20: error: ‘mutex’ in namespace ‘std’ does not name a type public: std::mutex mutex; ^ /usr/include/gazebo-7/gazebo/common/Event.hh:178:66: error: template argument 1 is invalid public: std::list ^ /usr/include/gazebo-7/gazebo/common/Event.hh:178:66: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal()’: /usr/include/gazebo-7/gazebo/common/Event.hh:367:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:372:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:372:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:372:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:372:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:372:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:372:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:382:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:387:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:387:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:387:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:387:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:387:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:387:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:398:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:403:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:403:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:403:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:403:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:403:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:403:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:415:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:420:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:420:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:420:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:420:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:420:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:420:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:434:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:439:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:439:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:439:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:439:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:439:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:439:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&, const P5&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:455:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:460:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:460:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:460:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:460:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:460:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:460:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&, const P5&, const P6&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:477:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:482:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:482:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:482:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:482:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:482:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:482:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&, const P5&, const P6&, const P7&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:500:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections.begin()) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:505:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:505:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:505:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:505:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:505:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:505:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&, const P5&, const P6&, const P7&, const P8&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:525:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:532:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:532:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:532:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:532:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:532:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:532:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&, const P5&, const P6&, const P7&, const P8&, const P9&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:554:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:562:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:562:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:562:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:562:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:562:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:562:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Signal(const P1&, const P2&, const P3&, const P4&, const P5&, const P6&, const P7&, const P8&, const P9&, const P10&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:585:19: error: ‘iter’ does not name a type for (auto iter: this->myDataPtr->connections) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:593:7: error: expected ‘;’ before ‘}’ token } ^ /usr/include/gazebo-7/gazebo/common/Event.hh:593:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:593:7: error: expected ‘;’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:593:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:593:7: error: expected ‘)’ before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh:593:7: error: expected primary-expression before ‘}’ token /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘gazebo::event::ConnectionPtr gazebo::event::EventT::Connect(const boost::function&)’: /usr/include/gazebo-7/gazebo/common/Event.hh:627:21: error: ISO C++ forbids declaration of ‘iter’ with no type [-fpermissive] auto const &iter = this->myDataPtr->connections.rbegin(); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:628:21: error: base operand of ‘->’ is not a pointer index = iter->first + 1; ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘virtual void gazebo::event::EventT::Disconnect(int)’: /usr/include/gazebo-7/gazebo/common/Event.hh:662:19: error: ISO C++ forbids declaration of ‘it’ with no type [-fpermissive] auto const &it = this->myDataPtr->connections.find(_id); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:666:11: error: base operand of ‘->’ is not a pointer it->second->on = false; ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In member function ‘void gazebo::event::EventT::Cleanup()’: /usr/include/gazebo-7/gazebo/common/Event.hh:675:7: error: ‘lock_guard’ is not a member of ‘std’ std::lock_guard lock(this->myDataPtr->mutex); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:675:23: error: ‘mutex’ is not a member of ‘std’ std::lock_guard lock(this->myDataPtr->mutex); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:677:18: error: ISO C++ forbids declaration of ‘conn’ with no type [-fpermissive] for (auto &conn : this->myDataPtr->connectionsToRemove) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:677:25: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 for (auto &conn : this->myDataPtr->connectionsToRemove) ^ In file included from /usr/include/gazebo-7/gazebo/common/Plugin.hh:49:0, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/physics/PhysicsTypes.hh: At global scope: /usr/include/gazebo-7/gazebo/physics/PhysicsTypes.hh:124:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr UserCmdPtr; ^ /usr/include/gazebo-7/gazebo/physics/PhysicsTypes.hh:128:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr UserCmdManagerPtr; ^ In file included from /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:23:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:50, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/EnumIface.hh: In static member function ‘static void gazebo::common::EnumIface::Set(T&, const string&)’: /usr/include/gazebo-7/gazebo/common/EnumIface.hh:82:21: error: ‘begin’ does not name a type static auto begin = std::begin(names); ^ /usr/include/gazebo-7/gazebo/common/EnumIface.hh:83:21: error: ‘end’ does not name a type static auto end = std::end(names); ^ /usr/include/gazebo-7/gazebo/common/EnumIface.hh:85:14: error: ‘find’ does not name a type auto find = std::find(begin, end, _str); ^ /usr/include/gazebo-7/gazebo/common/EnumIface.hh:86:13: error: ‘find’ was not declared in this scope if (find != end) ^ /usr/include/gazebo-7/gazebo/common/EnumIface.hh:86:13: note: suggested alternatives: In file included from /usr/include/c++/5/algorithm:62:0, from /usr/include/boost/iterator/iterator_concepts.hpp:29, from /usr/include/boost/range/concepts.hpp:20, from /usr/include/boost/range/size_type.hpp:20, from /usr/include/boost/range/size.hpp:21, from /usr/include/boost/range/functions.hpp:20, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/lexical_cast.hpp:30, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/c++/5/bits/stl_algo.h:3782:5: note: ‘std::find’ find(_InputIterator __first, _InputIterator _last, ^ In file included from /usr/include/boost/mpl/aux/contains_impl.hpp:20:0, from /usr/include/boost/mpl/contains.hpp:20, from /usr/include/boost/math/policies/policy.hpp:10, from /usr/include/boost/math/special_functions/math_fwd.hpp:28, from /usr/include/boost/math/special_functions/sign.hpp:17, from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34, from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64, from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53, from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34, from /usr/include/boost/lexical_cast.hpp:32, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/mpl/find.hpp:28:8: note: ‘boost::mpl::find’ struct find ^ In file included from /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:23:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:50, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/EnumIface.hh:86:21: error: ‘end’ was not declared in this scope if (find != end) ^ /usr/include/gazebo-7/gazebo/common/EnumIface.hh:86:21: note: suggested alternatives: In file included from /usr/include/boost/range/functions.hpp:19:0, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/lexical_cast.hpp:30, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/range/end.hpp:100:61: note: ‘boost::range_adl_barrier::end’ inline BOOST_DEDUCED_TYPENAME rangeiterator::type end( const T& r ) ^ In file included from /usr/include/boost/mpl/list/aux/begin_end.hpp:17:0, from /usr/include/boost/mpl/list/list0.hpp:27, from /usr/include/boost/mpl/list/list10.hpp:18, from /usr/include/boost/mpl/list/list20.hpp:18, from /usr/include/boost/mpl/list.hpp:36, from /usr/include/boost/math/policies/policy.hpp:9, from /usr/include/boost/math/special_functions/math_fwd.hpp:28, from /usr/include/boost/math/special_functions/sign.hpp:17, from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34, from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64, from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53, from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34, from /usr/include/boost/lexical_cast.hpp:32, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note: ‘boost::mpl::end’ template< typename Sequence > struct end; ^ In file included from /usr/include/boost/range/functions.hpp:19:0, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/lexical_cast.hpp:30, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/range/end.hpp:100:61: note: ‘boost::range_adl_barrier::end’ inline BOOST_DEDUCED_TYPENAME range_iterator::type end( const T& r ) ^ In file included from /usr/include/boost/filesystem.hpp:17:0, from /usr/include/gazebo-7/gazebo/common/SystemPaths.hh:31, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:45, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/filesystem/operations.hpp:1180:32: note: ‘boost::filesystem::end’ recursive_directory_iterator end(const recursive_directory_iterator&) ^ In file included from /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:23:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:50, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/EnumIface.hh:88:45: error: ‘begin’ was not declared in this scope _e = static_cast(std::distance(begin, find)); ^ /usr/include/gazebo-7/gazebo/common/EnumIface.hh:88:45: note: suggested alternatives: In file included from /usr/include/boost/range/functions.hpp:18:0, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/lexical_cast.hpp:30, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/range/begin.hpp:106:61: note: ‘boost::range_adl_barrier::begin’ inline BOOST_DEDUCED_TYPENAME rangeiterator::type begin( const T& r ) ^ In file included from /usr/include/boost/mpl/list/aux/begin_end.hpp:17:0, from /usr/include/boost/mpl/list/list0.hpp:27, from /usr/include/boost/mpl/list/list10.hpp:18, from /usr/include/boost/mpl/list/list20.hpp:18, from /usr/include/boost/mpl/list.hpp:36, from /usr/include/boost/math/policies/policy.hpp:9, from /usr/include/boost/math/special_functions/math_fwd.hpp:28, from /usr/include/boost/math/special_functions/sign.hpp:17, from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:34, from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64, from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53, from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34, from /usr/include/boost/lexical_cast.hpp:32, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/mpl/begin_end_fwd.hpp:22:38: note: ‘boost::mpl::begin’ template< typename Sequence > struct begin; ^ In file included from /usr/include/boost/range/functions.hpp:18:0, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/lexical_cast.hpp:30, from /usr/include/sdformat-4.0/sdf/Param.hh:23, from /usr/include/sdformat-4.0/sdf/Element.hh:24, from /usr/include/sdformat-4.0/sdf/sdf.hh:5, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/range/begin.hpp:106:61: note: ‘boost::range_adl_barrier::begin’ inline BOOST_DEDUCED_TYPENAME range_iterator::type begin( const T& r ) ^ In file included from /usr/include/boost/filesystem.hpp:17:0, from /usr/include/gazebo-7/gazebo/common/SystemPaths.hh:31, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:45, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/boost/filesystem/operations.hpp:1177:39: note: ‘boost::filesystem::begin’ const recursive_directory_iterator& begin(const recursive_directory_iterator& iter) ^ In file included from /usr/include/gazebo-7/gazebo/common/Plugin.hh:50:0, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh: At global scope: /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:60:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr AltimeterSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:64:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr SensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:68:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr RaySensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:72:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr CameraSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:76:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr MagnetometerSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:80:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr MultiCameraSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:84:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr DepthCameraSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:88:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr WideAngleCameraSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:92:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ContactSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:96:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ImuSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:100:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr GpuRaySensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:104:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr RFIDSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:108:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr RFIDTagPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:112:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr SonarSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:116:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ForceTorqueSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:120:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr GpsSensorPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:124:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr NoisePtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:128:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr GaussianNoiseModelPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:131:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:136:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr WirelessTransceiverPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:140:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr WirelessTransmitterPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:144:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr WirelessReceiverPtr; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:152:25: error: ‘SensorPtr’ was not declared in this scope typedef std::vector Sensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:152:34: error: template argument 1 is invalid typedef std::vector Sensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:152:34: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:156:25: error: ‘RaySensorPtr’ was not declared in this scope typedef std::vector RaySensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:156:37: error: template argument 1 is invalid typedef std::vector RaySensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:156:37: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:160:25: error: ‘CameraSensorPtr’ was not declared in this scope typedef std::vector CameraSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:160:40: error: template argument 1 is invalid typedef std::vector CameraSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:160:40: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:164:25: error: ‘MultiCameraSensorPtr’ was not declared in this scope typedef std::vector MultiCameraSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:164:45: error: template argument 1 is invalid typedef std::vector MultiCameraSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:164:45: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:168:25: error: ‘DepthCameraSensorPtr’ was not declared in this scope typedef std::vector DepthCameraSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:168:45: error: template argument 1 is invalid typedef std::vector DepthCameraSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:168:45: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:172:25: error: ‘ContactSensorPtr’ was not declared in this scope typedef std::vector ContactSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:172:41: error: template argument 1 is invalid typedef std::vector ContactSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:172:41: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:176:25: error: ‘ImuSensorPtr’ was not declared in this scope typedef std::vector ImuSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:176:37: error: template argument 1 is invalid typedef std::vector ImuSensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:176:37: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:180:25: error: ‘GpuRaySensorPtr’ was not declared in this scope typedef std::vector GpuRaySensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:180:40: error: template argument 1 is invalid typedef std::vector GpuRaySensor_V; ^ /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:180:40: error: template argument 2 is invalid /usr/include/gazebo-7/gazebo/sensors/SensorTypes.hh:204:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr LogicalCameraSensorPtr; ^ In file included from /usr/include/gazebo-7/gazebo/common/Plugin.hh:51:0, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:112:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr VisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:116:18: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type typedef std::weak_ptr VisualWeakPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:120:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr LaserVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:124:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr SonarVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:128:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr WrenchVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:132:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr CameraVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:136:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr LogicalCameraVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:140:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr JointVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:144:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ContactVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:148:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ArrowVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:152:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr AxisVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:156:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr COMVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:160:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr InertiaVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:164:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr RFIDVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:168:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr RFIDTagVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:172:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr ApplyWrenchVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:176:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr OriginVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:180:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr LinkFrameVisualPtr; ^ /usr/include/gazebo-7/gazebo/rendering/RenderTypes.hh:188:18: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type typedef std::shared_ptr SelectionObjPtr; ^ In file included from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32:0, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/Plugin.hh:236:36: error: ‘sdf::ElementPtr’ has not been declared sdf::ElementPtr _sdf) = 0; ^ /usr/include/gazebo-7/gazebo/common/Plugin.hh:261:36: error: ‘sdf::ElementPtr’ has not been declared sdf::ElementPtr _sdf) = 0; ^ /usr/include/gazebo-7/gazebo/common/Plugin.hh:289:40: error: ‘gazebo::sensors::SensorPtr’ has not been declared public: virtual void Load(sensors::SensorPtr _sensor, ^ /usr/include/gazebo-7/gazebo/common/Plugin.hh:290:36: error: ‘sdf::ElementPtr’ has not been declared sdf::ElementPtr _sdf) = 0; ^ /usr/include/gazebo-7/gazebo/common/Plugin.hh:342:42: error: ‘gazebo::rendering::VisualPtr’ has not been declared public: virtual void Load(rendering::VisualPtr _visual, ^ /usr/include/gazebo-7/gazebo/common/Plugin.hh:343:36: error: ‘sdf::ElementPtr’ has not been declared sdf::ElementPtr _sdf) = 0; ^ In file included from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29:0: /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:45:52: error: ‘sdf::ElementPtr’ has not been declared virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf); ^ In file included from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:30:0: /usr/include/gazebo-7/gazebo/common/Events.hh:368:35: error: ‘ElementPtr’ is not a member of ‘sdf’ public: static EventT<void (sdf::ElementPtr, ^ /usr/include/gazebo-7/gazebo/common/Events.hh:371:33: error: expression list treated as compound expression in functional cast [-fpermissive] const uint32_t)> createSensor; ^ /usr/include/gazebo-7/gazebo/common/Events.hh:371:34: error: template argument 1 is invalid const uint32_t)> createSensor; ^ /usr/include/gazebo-7/gazebo/common/Events.hh: In static member function ‘static gazebo::event::ConnectionPtr gazebo::event::Events::ConnectCreateSensor(T)’: /usr/include/gazebo-7/gazebo/common/Events.hh:221:37: error: request for member ‘Connect’ in ‘gazebo::event::Events::createSensor’, which is of non-class type ‘int’ { return createSensor.Connect(_subscriber); } ^ /usr/include/gazebo-7/gazebo/common/Events.hh: In static member function ‘static void gazebo::event::Events::DisconnectCreateSensor(gazebo::event::ConnectionPtr)’: /usr/include/gazebo-7/gazebo/common/Events.hh:226:30: error: request for member ‘Disconnect’ in ‘gazebo::event::Events::createSensor’, which is of non-class type ‘int’ { createSensor.Disconnect(_subscriber); } ^ [ 7%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/filter.cpp.o /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp: At global scope: /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:50:61: error: ‘sdf::ElementPtr’ has not been declared void GazeboResetPlugin::Load(physics::ModelPtr _model, sdf::ElementPtr _sdf) ^ In file included from /usr/include/gazebo-7/gazebo/common/SystemPaths.hh:36:0, from /usr/include/gazebo-7/gazebo/common/Plugin.hh:45, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/include/hector_gazebo_plugins/reset_plugin.h:32, from /home/yueshukun/hector_quadrotor_tutorial/src/hector_gazebo/hector_gazebo_plugins/src/reset_plugin.cpp:29: /usr/include/gazebo-7/gazebo/common/Event.hh: In instantiation of ‘void gazebo::event::EventT::Disconnect(int) [with T = void(bool)]’: /usr/include/gazebo-7/gazebo/common/Event.hh:643:7: required from ‘void gazebo::event::EventT::Disconnect(gazebo::event::ConnectionPtr) [with T = void(bool); gazebo::event::ConnectionPtr = boost::shared_ptr]’ /usr/include/gazebo-7/gazebo/common/Events.hh:50:45: required from here /usr/include/gazebo-7/gazebo/common/Event.hh:662:61: error: ‘class gazebo::event::EventTPrivate<void(bool)>’ has no member named ‘connections’ auto const &it = this->myDataPtr->connections.find(_id); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:664:14: error: ‘class gazebo::event::EventTPrivate<void(bool)>’ has no member named ‘connections’ if (it != this->myDataPtr->connections.end()) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:667:9: error: request for member ‘push_back’ in ‘((gazebo::event::EventT<void(bool)>)this)->gazebo::event::EventT<void(bool)>::myDataPtr->gazebo::event::EventTPrivate<void(bool)>::connectionsToRemove’, which is of non-class type ‘int’ this->myDataPtr->connectionsToRemove.push_back(it); ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In instantiation of ‘void gazebo::event::EventT::Disconnect(int) [with T = void()]’: /usr/include/gazebo-7/gazebo/common/Event.hh:643:7: required from ‘void gazebo::event::EventT::Disconnect(gazebo::event::ConnectionPtr) [with T = void(); gazebo::event::ConnectionPtr = boost::shared_ptr]’ /usr/include/gazebo-7/gazebo/common/Events.hh:62:44: required from here /usr/include/gazebo-7/gazebo/common/Event.hh:662:61: error: ‘class gazebo::event::EventTPrivate<void()>’ has no member named ‘connections’ auto const &it = this->myDataPtr->connections.find(_id); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:664:14: error: ‘class gazebo::event::EventTPrivate<void()>’ has no member named ‘connections’ if (it != this->myDataPtr->connections.end()) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:667:9: error: request for member ‘push_back’ in ‘((gazebo::event::EventT<void()>)this)->gazebo::event::EventT<void()>::myDataPtr->gazebo::event::EventTPrivate<void()>::connectionsToRemove’, which is of non-class type ‘int’ this->myDataPtr->connectionsToRemove.push_back(it); ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In instantiation of ‘void gazebo::event::EventT::Disconnect(int) [with T = void(std::cxx11::basic_string)]’: /usr/include/gazebo-7/gazebo/common/Event.hh:643:7: required from ‘void gazebo::event::EventT::Disconnect(gazebo::event::ConnectionPtr) [with T = void(std::cxx11::basic_string); gazebo::event::ConnectionPtr = boost::shared_ptr]’ /usr/include/gazebo-7/gazebo/common/Events.hh:85:52: required from here /usr/include/gazebo-7/gazebo/common/Event.hh:662:61: error: ‘class gazebo::event::EventTPrivate<void(std::cxx11::basic_string)>’ has no member named ‘connections’ auto const &it = this->myDataPtr->connections.find(_id); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:664:14: error: ‘class gazebo::event::EventTPrivate<void(std::cxx11::basic_string)>’ has no member named ‘connections’ if (it != this->myDataPtr->connections.end()) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:667:9: error: request for member ‘push_back’ in ‘((gazebo::event::EventT<void(std::cxx11::basic_string)>*)this)->gazebo::event::EventT<void(std::cxx11::basic_string)>::myDataPtr->gazebo::event::EventTPrivate<void(std::cxx11::basic_string)>::connectionsToRemove’, which is of non-class type ‘int’ this->myDataPtr->connectionsToRemove.push_back(it); ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In instantiation of ‘void gazebo::event::EventT::Disconnect(int) [with T = void(std::cxx11::basic_string, std::cxx11::basic_string)]’: /usr/include/gazebo-7/gazebo/common/Event.hh:643:7: required from ‘void gazebo::event::EventT::Disconnect(gazebo::event::ConnectionPtr) [with T = void(std::__cxx11::basic_string, std::cxx11::basic_string); gazebo::event::ConnectionPtr = boost::shared_ptr]’ /usr/include/gazebo-7/gazebo/common/Events.hh:109:57: required from here /usr/include/gazebo-7/gazebo/common/Event.hh:662:61: error: ‘class gazebo::event::EventTPrivate<void(std::cxx11::basic_string, std::cxx11::basic_string)>’ has no member named ‘connections’ auto const &it = this->myDataPtr->connections.find(_id); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:664:14: error: ‘class gazebo::event::EventTPrivate<void(std::cxx11::basic_string, std::cxx11::basic_string)>’ has no member named ‘connections’ if (it != this->myDataPtr->connections.end()) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:667:9: error: request for member ‘push_back’ in ‘((gazebo::event::EventT<void(std::cxx11::basic_string, std::__cxx11::basic_string)>*)this)->gazebo::event::EventT<void(std::cxx11::basic_string, std::cxx11::basic_string)>::myDataPtr->gazebo::event::EventTPrivate<void(std::__cxx11::basic_string, std::cxx11::basic_string)>::connectionsToRemove’, which is of non-class type ‘int’ this->myDataPtr->connectionsToRemove.push_back(it); ^ /usr/include/gazebo-7/gazebo/common/Event.hh: In instantiation of ‘void gazebo::event::EventT::Disconnect(int) [with T = void(const gazebo::common::UpdateInfo&)]’: /usr/include/gazebo-7/gazebo/common/Event.hh:643:7: required from ‘void gazebo::event::EventT::Disconnect(gazebo::event::ConnectionPtr) [with T = void(const gazebo::common::UpdateInfo&); gazebo::event::ConnectionPtr = boost::shared_ptr]’ /usr/include/gazebo-7/gazebo/common/Events.hh:162:59: required from here /usr/include/gazebo-7/gazebo/common/Event.hh:662:61: error: ‘class gazebo::event::EventTPrivate<void(const gazebo::common::UpdateInfo&)>’ has no member named ‘connections’ auto const &it = this->myDataPtr->connections.find(_id); ^ /usr/include/gazebo-7/gazebo/common/Event.hh:664:14: error: ‘class gazebo::event::EventTPrivate<void(const gazebo::common::UpdateInfo&)>’ has no member named ‘connections’ if (it != this->myDataPtr->connections.end()) ^ /usr/include/gazebo-7/gazebo/common/Event.hh:667:9: error: request for member ‘push_back’ in ‘((gazebo::event::EventT<void(const gazebo::common::UpdateInfo&)>*)this)->gazebo::event::EventT<void(const gazebo::common::UpdateInfo&)>::myDataPtr->gazebo::event::EventTPrivate<void(const gazebo::common::UpdateInfo&)>::connectionsToRemove’, which is of non-class type ‘int’ this->myDataPtr->connectionsToRemove.push_back(it); ^ hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_gazebo_reset_plugin.dir/build.make:62: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_gazebo_reset_plugin.dir/src/reset_plugin.cpp.o' failed make[2]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_gazebo_reset_plugin.dir/src/reset_plugin.cpp.o] Error 1 CMakeFiles/Makefile2:5308: recipe for target 'hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_gazebo_reset_plugin.dir/all' failed make[1]: [hector_gazebo/hector_gazebo_plugins/CMakeFiles/hector_gazebo_reset_plugin.dir/all] Error 2 [ 8%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/filter/ekf.cpp.o [ 8%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/system.cpp.o [ 8%] Linking CXX executable /home/yueshukun/hector_quadrotor_tutorial/devel/lib/hector_imu_tools/pose_and_orientation_to_imu_node [ 8%] Built target pose_and_orientation_to_imu_node [ 8%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/system/generic_quaternion_system_model.cpp.o [ 9%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/system/ground_vehicle_model.cpp.o [ 9%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/system/imu_model.cpp.o [ 9%] Linking CXX executable /home/yueshukun/hector_quadrotor_tutorial/devel/lib/message_to_tf/message_to_tf [ 9%] Built target message_to_tf [ 9%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurement.cpp.o [ 10%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/gravity.cpp.o [ 10%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/zerorate.cpp.o [ 11%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/heading.cpp.o [ 11%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/magnetic.cpp.o [ 11%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/height.cpp.o [ 12%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/poseupdate.cpp.o [ 12%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/baro.cpp.o [ 12%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/gps.cpp.o [ 13%] Building CXX object hector_localization/hector_pose_estimation_core/CMakeFiles/hector_pose_estimation.dir/src/measurements/rate.cpp.o [ 13%] Linking CXX shared library /home/yueshukun/hector_quadrotor_tutorial/devel/lib/libhector_pose_estimation.so [ 13%] Built target hector_pose_estimation Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j8 -l8" failed

suraj2596 commented 6 years ago

Add this line to the cmake file in ~/catkin_ws/src

SET (CMAKE_CXX_FLAGS "-std=c++0x")

ggsharma commented 5 years ago

I faced the same issue. Try the following.

!/bin/bash

to execute when in catkin_ws/src folder

sudo apt-get install ros-kinetic-ros-control sudo apt-get install ros-kinetic-gazebo-ros-control

sudo apt-get install ros-kinetic-unique-identifier
sudo apt-get install ros-kinetic-geographic-info
sudo apt-get install ros-kinetic-laser-geometry
sudo apt-get install ros-kinetic-tf-conversions
sudo apt-get install ros-kinetic-tf2-geometry-msgs
sudo apt-get install ros-kinetic-joy
git clone -b kinetic-devel https://github.com/tu-darmstadt-ros-pkg/hector_quadrotor
git clone -b catkin https://github.com/tu-darmstadt-ros-pkg/hector_localization
git clone -b kinetic-devel https://github.com/tu-darmstadt-ros-pkg/hector_gazebo
git clone -b kinetic-devel https://github.com/tu-darmstadt-ros-pkg/hector_models
git clone -b catkin https://github.com/tu-darmstadt-ros-pkg/hector_slam

sed -i -e 's/option(USE_PROPULSION_PLUGIN "Use a model of the quadrotor propulsion system" ON)/option(USE_PROPULSION_PLUGIN "Use a model of the quadrotor propulsion system" OFF)/g' hector_quadrotor/hector_quadrotor/hector_quadrotor_gazebo/urdf/CMakeLists.txt

sed -i -e 's/option(USE_AERODYNAMICS_PLUGIN "Use a model of the quadrotor aerodynamics" ON)/option(USE_AERODYNAMICS_PLUGIN "Use a model of the quadrotor aerodynamics" OFF)/g' hector_quadrotor/hector_quadrotor/hector_quadrotor_gazebo/urdf/CMakeLists.txt

this is to deactivate warnings

sed -i -e 's/add_dependencies(landing_action hector_uav_msgs_generate_message_cpp)//g' hector_quadrotor/hector_quadrotor/hector_quadrotor_actions/CMakeLists.txt

sed -i -e 's/add_dependencies(pose_action hector_uav_msgs_generate_message_cpp)//g' hector_quadrotor/hector_quadrotor/hector_quadrotor_actions/CMakeLists.txt

sed -i -e 's/add_dependencies(takeoff_action hector_uav_msgs_generate_message_cpp)//g' hector_quadrotor/hector_quadrotor/hector_quadrotor_actions/CMakeLists.txt

sed -i -e 's/add_dependencies(hector_quadrotor_controllers hector_uav_msgs_generate_message_cpp)//g' hector_quadrotor/hector_quadrotor/hector_quadrotor_controllers/CMakeLists.txt
cd ..
catkin_make
source devel/setup.bash

It should be fine now. Cheers!!

78