Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Help] [ROS] Errors while doing catkin_make and roslaunch

Author: libo456@hotmail 2017-9-13 20:42
2 104

Hello,

I am trying to start using the onboard SDK in ROS, but when executing step 6 from Building the ROS Nodes (
  1. catkin_make
Copy the code
), I get several errors (see the attached code). I am not sure if I am missing some sort of pre-configuration, I followed all previous steps and there were no warnings nor errors.

  1. [ 90%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/main.cpp.o
  2. In file included from /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk_demo/src/demo_local_position_control.cpp:13:0:
  3. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:60:46: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  4.    MODE_MANUAL_CTRL=DJI::OSDK::VehicleStatus::DisplayMode::MODE_MANUAL_CTRL,
  5.                                               ^
  6. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:65:43: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  7.    MODE_ATTITUDE=DJI::OSDK::VehicleStatus::DisplayMode::MODE_ATTITUDE,
  8.                                            ^
  9. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:73:40: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  10.    MODE_P_GPS=DJI::OSDK::VehicleStatus::DisplayMode::MODE_P_GPS,
  11.                                         ^
  12. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:75:48: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  13.    MODE_HOTPOINT_MODE=DJI::OSDK::VehicleStatus::DisplayMode::MODE_HOTPOINT_MODE,
  14.                                                 ^
  15. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:78:51: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  16.    MODE_ASSISTED_TAKEOFF=DJI::OSDK::VehicleStatus::DisplayMode::MODE_ASSISTED_TAKEOFF,
  17.                                                    ^
  18. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:81:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  19.    MODE_AUTO_TAKEOFF=DJI::OSDK::VehicleStatus::DisplayMode::MODE_AUTO_TAKEOFF,
  20.                                                ^
  21. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:83:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  22.    MODE_AUTO_LANDING=DJI::OSDK::VehicleStatus::DisplayMode::MODE_AUTO_LANDING,
  23.                                                ^
  24. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:88:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  25.    MODE_NAVI_GO_HOME=DJI::OSDK::VehicleStatus::DisplayMode::MODE_NAVI_GO_HOME,
  26.                                                ^
  27. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:92:48: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  28.    MODE_NAVI_SDK_CTRL=DJI::OSDK::VehicleStatus::DisplayMode::MODE_NAVI_SDK_CTRL,
  29.                                                 ^
  30. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:95:53: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  31.    MODE_FORCE_AUTO_LANDING=DJI::OSDK::VehicleStatus::DisplayMode::MODE_FORCE_AUTO_LANDING,
  32.                                                      ^
  33. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:97:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  34.    MODE_SEARCH_MODE =DJI::OSDK::VehicleStatus::DisplayMode::MODE_SEARCH_MODE,
  35.                                                ^
  36. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:100:49: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  37.    MODE_ENGINE_START = DJI::OSDK::VehicleStatus::DisplayMode::MODE_ENGINE_START
  38.                                                  ^
  39. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:112:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  40.    STATUS_STOPPED   = DJI::OSDK::VehicleStatus::FlightStatus::STOPED,
  41.                                                 ^
  42. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:113:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  43.    STATUS_ON_GROUND = DJI::OSDK::VehicleStatus::FlightStatus::ON_GROUND,
  44.                                                 ^
  45. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:114:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  46.    STATUS_IN_AIR    = DJI::OSDK::VehicleStatus::FlightStatus::IN_AIR
  47.                                                 ^
  48. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:119:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  49.    M100_STATUS_ON_GROUND        = DJI::OSDK::VehicleStatus::M100FlightStatus::ON_GROUND_STANDBY,
  50.                                                             ^
  51. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:120:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  52.    M100_STATUS_TAKINGOFF        = DJI::OSDK::VehicleStatus::M100FlightStatus::TAKEOFF,
  53.                                                             ^
  54. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:121:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  55.    M100_STATUS_IN_AIR           = DJI::OSDK::VehicleStatus::M100FlightStatus::IN_AIR_STANDBY,
  56.                                                             ^
  57. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:122:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  58.    M100_STATUS_LANDING          = DJI::OSDK::VehicleStatus::M100FlightStatus::LANDING,
  59.                                                             ^
  60. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:123:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  61.    M100_STATUS_FINISHED_LANDING = DJI::OSDK::VehicleStatus::M100FlightStatus::FINISHING_LANDING
  62.                                                             ^
  63. [ 91%] Linking CXX executable /home/libardo/Documents/catkin_ws/devel/lib/dji_sdk_demo/demo_mfio
  64. [ 91%] Built target demo_mfio
  65. [ 92%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_services.cpp.o
  66. Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_local_position_control.dir/build.make:62: recipe for target 'Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_local_position_control.dir/src/demo_local_position_control.cpp.o' failed
  67. make[2]: *** [Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_local_position_control.dir/src/demo_local_position_control.cpp.o] Error 1
  68. CMakeFiles/Makefile2:3092: recipe for target 'Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_local_position_control.dir/all' failed
  69. make[1]: *** [Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_local_position_control.dir/all] Error 2
  70. make[1]: *** Waiting for unfinished jobs....
  71. [ 93%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node.cpp.o
  72. In file included from /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk_demo/src/demo_flight_control.cpp:13:0:
  73. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:60:46: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  74.    MODE_MANUAL_CTRL=DJI::OSDK::VehicleStatus::DisplayMode::MODE_MANUAL_CTRL,
  75.                                               ^
  76. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:65:43: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  77.    MODE_ATTITUDE=DJI::OSDK::VehicleStatus::DisplayMode::MODE_ATTITUDE,
  78.                                            ^
  79. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:73:40: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  80.    MODE_P_GPS=DJI::OSDK::VehicleStatus::DisplayMode::MODE_P_GPS,
  81.                                         ^
  82. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:75:48: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  83.    MODE_HOTPOINT_MODE=DJI::OSDK::VehicleStatus::DisplayMode::MODE_HOTPOINT_MODE,
  84.                                                 ^
  85. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:78:51: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  86.    MODE_ASSISTED_TAKEOFF=DJI::OSDK::VehicleStatus::DisplayMode::MODE_ASSISTED_TAKEOFF,
  87.                                                    ^
  88. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:81:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  89.    MODE_AUTO_TAKEOFF=DJI::OSDK::VehicleStatus::DisplayMode::MODE_AUTO_TAKEOFF,
  90.                                                ^
  91. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:83:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  92.    MODE_AUTO_LANDING=DJI::OSDK::VehicleStatus::DisplayMode::MODE_AUTO_LANDING,
  93.                                                ^
  94. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:88:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  95.    MODE_NAVI_GO_HOME=DJI::OSDK::VehicleStatus::DisplayMode::MODE_NAVI_GO_HOME,
  96.                                                ^
  97. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:92:48: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  98.    MODE_NAVI_SDK_CTRL=DJI::OSDK::VehicleStatus::DisplayMode::MODE_NAVI_SDK_CTRL,
  99.                                                 ^
  100. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:95:53: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  101.    MODE_FORCE_AUTO_LANDING=DJI::OSDK::VehicleStatus::DisplayMode::MODE_FORCE_AUTO_LANDING,
  102.                                                      ^
  103. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:97:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  104.    MODE_SEARCH_MODE =DJI::OSDK::VehicleStatus::DisplayMode::MODE_SEARCH_MODE,
  105.                                                ^
  106. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:100:49: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  107.    MODE_ENGINE_START = DJI::OSDK::VehicleStatus::DisplayMode::MODE_ENGINE_START
  108.                                                  ^
  109. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:112:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  110.    STATUS_STOPPED   = DJI::OSDK::VehicleStatus::FlightStatus::STOPED,
  111.                                                 ^
  112. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:113:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  113.    STATUS_ON_GROUND = DJI::OSDK::VehicleStatus::FlightStatus::ON_GROUND,
  114.                                                 ^
  115. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:114:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  116.    STATUS_IN_AIR    = DJI::OSDK::VehicleStatus::FlightStatus::IN_AIR
  117.                                                 ^
  118. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:119:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  119.    M100_STATUS_ON_GROUND        = DJI::OSDK::VehicleStatus::M100FlightStatus::ON_GROUND_STANDBY,
  120.                                                             ^
  121. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:120:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  122.    M100_STATUS_TAKINGOFF        = DJI::OSDK::VehicleStatus::M100FlightStatus::TAKEOFF,
  123.                                                             ^
  124. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:121:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  125.    M100_STATUS_IN_AIR           = DJI::OSDK::VehicleStatus::M100FlightStatus::IN_AIR_STANDBY,
  126.                                                             ^
  127. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:122:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  128.    M100_STATUS_LANDING          = DJI::OSDK::VehicleStatus::M100FlightStatus::LANDING,
  129.                                                             ^
  130. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:123:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  131.    M100_STATUS_FINISHED_LANDING = DJI::OSDK::VehicleStatus::M100FlightStatus::FINISHING_LANDING
  132.                                                             ^
  133. In file included from /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk_demo/src/demo_mobile_comm.cpp:13:0:
  134. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:60:46: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  135.    MODE_MANUAL_CTRL=DJI::OSDK::VehicleStatus::DisplayMode::MODE_MANUAL_CTRL,
  136.                                               ^
  137. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:65:43: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  138.    MODE_ATTITUDE=DJI::OSDK::VehicleStatus::DisplayMode::MODE_ATTITUDE,
  139.                                            ^
  140. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:73:40: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  141.    MODE_P_GPS=DJI::OSDK::VehicleStatus::DisplayMode::MODE_P_GPS,
  142.                                         ^
  143. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:75:48: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  144.    MODE_HOTPOINT_MODE=DJI::OSDK::VehicleStatus::DisplayMode::MODE_HOTPOINT_MODE,
  145.                                                 ^
  146. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:78:51: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  147.    MODE_ASSISTED_TAKEOFF=DJI::OSDK::VehicleStatus::DisplayMode::MODE_ASSISTED_TAKEOFF,
  148.                                                    ^
  149. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:81:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  150.    MODE_AUTO_TAKEOFF=DJI::OSDK::VehicleStatus::DisplayMode::MODE_AUTO_TAKEOFF,
  151.                                                ^
  152. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:83:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  153.    MODE_AUTO_LANDING=DJI::OSDK::VehicleStatus::DisplayMode::MODE_AUTO_LANDING,
  154.                                                ^
  155. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:88:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  156.    MODE_NAVI_GO_HOME=DJI::OSDK::VehicleStatus::DisplayMode::MODE_NAVI_GO_HOME,
  157.                                                ^
  158. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:92:48: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  159.    MODE_NAVI_SDK_CTRL=DJI::OSDK::VehicleStatus::DisplayMode::MODE_NAVI_SDK_CTRL,
  160.                                                 ^
  161. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:95:53: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  162.    MODE_FORCE_AUTO_LANDING=DJI::OSDK::VehicleStatus::DisplayMode::MODE_FORCE_AUTO_LANDING,
  163.                                                      ^
  164. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:97:47: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  165.    MODE_SEARCH_MODE =DJI::OSDK::VehicleStatus::DisplayMode::MODE_SEARCH_MODE,
  166.                                                ^
  167. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:100:49: error: ‘DJI::OSDK::VehicleStatus::DisplayMode’ has not been declared
  168.    MODE_ENGINE_START = DJI::OSDK::VehicleStatus::DisplayMode::MODE_ENGINE_START
  169.                                                  ^
  170. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:112:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  171.    STATUS_STOPPED   = DJI::OSDK::VehicleStatus::FlightStatus::STOPED,
  172.                                                 ^
  173. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:113:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  174.    STATUS_ON_GROUND = DJI::OSDK::VehicleStatus::FlightStatus::ON_GROUND,
  175.                                                 ^
  176. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:114:48: error: ‘DJI::OSDK::VehicleStatus::FlightStatus’ has not been declared
  177.    STATUS_IN_AIR    = DJI::OSDK::VehicleStatus::FlightStatus::IN_AIR
  178.                                                 ^
  179. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:119:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  180.    M100_STATUS_ON_GROUND        = DJI::OSDK::VehicleStatus::M100FlightStatus::ON_GROUND_STANDBY,
  181.                                                             ^
  182. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:120:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  183.    M100_STATUS_TAKINGOFF        = DJI::OSDK::VehicleStatus::M100FlightStatus::TAKEOFF,
  184.                                                             ^
  185. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:121:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  186.    M100_STATUS_IN_AIR           = DJI::OSDK::VehicleStatus::M100FlightStatus::IN_AIR_STANDBY,
  187.                                                             ^
  188. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:122:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  189.    M100_STATUS_LANDING          = DJI::OSDK::VehicleStatus::M100FlightStatus::LANDING,
  190.                                                             ^
  191. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk.h:123:60: error: ‘DJI::OSDK::VehicleStatus::M100FlightStatus’ has not been declared
  192.    M100_STATUS_FINISHED_LANDING = DJI::OSDK::VehicleStatus::M100FlightStatus::FINISHING_LANDING
  193.                                                             ^
  194. [ 94%] Linking CXX executable /home/libardo/Documents/catkin_ws/devel/lib/dji_sdk_demo/demo_camera_gimbal
  195. [ 94%] Built target demo_camera_gimbal
  196. [ 94%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_mission_services.cpp.o
  197. [ 95%] Linking CXX executable /home/libardo/Documents/catkin_ws/devel/lib/dji_sdk_demo/demo_mission
  198. [ 96%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_subscriber.cpp.o
  199. [ 96%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_publisher.cpp.o
  200. Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_flight_control.dir/build.make:62: recipe for target 'Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_flight_control.dir/src/demo_flight_control.cpp.o' failed
  201. make[2]: *** [Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_flight_control.dir/src/demo_flight_control.cpp.o] Error 1
  202. CMakeFiles/Makefile2:2944: recipe for target 'Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_flight_control.dir/all' failed
  203. make[1]: *** [Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_flight_control.dir/all] Error 2
  204. [ 97%] Building CXX object Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_mobile_comm.cpp.o
  205. [ 97%] Built target demo_mission
  206. Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_mobile_comm.dir/build.make:62: recipe for target 'Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_mobile_comm.dir/src/demo_mobile_comm.cpp.o' failed
  207. make[2]: *** [Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_mobile_comm.dir/src/demo_mobile_comm.cpp.o] Error 1
  208. CMakeFiles/Makefile2:3018: recipe for target 'Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_mobile_comm.dir/all' failed
  209. make[1]: *** [Onboard-SDK-ROS/dji_sdk_demo/CMakeFiles/demo_mobile_comm.dir/all] Error 2
  210. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/src/modules/dji_sdk_node_mission_services.cpp: In member function ‘bool DJISDKNode::missionWpGetInfoCallback(dji_sdk::MissionWpGetInfo::Request&, dji_sdk::MissionWpGetInfo::Response&)’:
  211. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/src/modules/dji_sdk_node_mission_services.cpp:249:48: error: ‘class DJI::OSDK::WaypointMission’ has no member named ‘getWaypointSettings’
  212.      info = vehicle->missionManager->wpMission->getWaypointSettings(10).data;
  213.                                                 ^
  214. /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/src/modules/dji_sdk_node_mission_services.cpp:270:64: error: no matching function for call to ‘DJI::OSDK::WaypointMission::getIndex(int&, int)’
  215.      wpData = vehicle->missionManager->wpMission->getIndex(i, 10).data;
  216.                                                                 ^
  217. In file included from /usr/local/include/djiosdk/dji_mission_manager.hpp:17:0,
  218.                  from /usr/local/include/djiosdk/dji_vehicle.hpp:26,
  219.                  from /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/include/dji_sdk/dji_sdk_node.h:66,
  220.                  from /home/libardo/Documents/catkin_ws/src/Onboard-SDK-ROS/dji_sdk/src/modules/dji_sdk_node_mission_services.cpp:12:
  221. /usr/local/include/djiosdk/dji_waypoint.hpp:139:21: note: candidate: DJI::OSDK::WayPointSettings* DJI::OSDK::WaypointMission::getIndex() const
  222.    WayPointSettings* getIndex() const;
  223.                      ^
  224. /usr/local/include/djiosdk/dji_waypoint.hpp:139:21: note:   candidate expects 0 arguments, 2 provided
  225. /usr/local/include/djiosdk/dji_waypoint.hpp:146:21: note: candidate: DJI::OSDK::WayPointSettings* DJI::OSDK::WaypointMission::getIndex(size_t) const
  226.    WayPointSettings* getIndex(size_t pos) const;
  227.                      ^
  228. /usr/local/include/djiosdk/dji_waypoint.hpp:146:21: note:   candidate expects 1 argument, 2 provided
  229. Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/build.make:158: recipe for target 'Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_mission_services.cpp.o' failed
  230. make[2]: *** [Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/src/modules/dji_sdk_node_mission_services.cpp.o] Error 1
  231. make[2]: *** Waiting for unfinished jobs....
  232. CMakeFiles/Makefile2:1557: recipe for target 'Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/all' failed
  233. make[1]: *** [Onboard-SDK-ROS/dji_sdk/CMakeFiles/dji_sdk_node.dir/all] Error 2
  234. Makefile:138: recipe for target 'all' failed
  235. make: *** [all] Error 2
  236. Invoking "make -j8 -l8" failed

Copy the code
I thought that I could simply ommit the errors, so I continued with the next steps. However, when running
  1. roslaunch dji_sdk sdk.launch
Copy the code
I get an error saying: [code] ERROR: cannot launch node of type [dji_sdk/dji_sdk_node]: can't locate node [dji_sdk_node] in package [dji_sdk]
[\code]. I guess it is related to the previous error, though.

If any one can help me solving out this issue, I would be very thankful.
Reply
Replies
libo456@hotmail
I've checked the Onboard-SDK-3.3 folder I downloaded from GitHub and opened the file ¨dji_status.hpp¨ (within the folder Onboard-SDK-3.3/osdk-core/api), there I found the class VehicleStatus; however, the constants that are causing errors were not there. I don't know if they should be there or if I have to download something else to get them.
At this moment I have no idea what is causing the errors
  1. recipe for target 'xxxx' failed
Copy the code
.
By the way, I am using Ubuntu 16.04.03 LTS, ROS Kinetic, the Onboard SDK 3.3.1, and the Onboard SDK ROS 3.3.
2017-9-14 03:39
libo456@hotmail
I already found out what I was doing wrong: I downloaded version 3.3 from the SDK, which is not complete. After installing v3.3.1 for both the OSDK and the OSDK-ROS, I got no errors
Apologize for the silly post, though...
2017-9-14 22:03
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list