Error running catkin_make with DJI_SDK_READ_CAM package

asked 2016-08-01 09:49:29 -0600

Italo gravatar image

Hello everyone,

I'm trying to acquire the video capturing from zenmuse X3 in the DJI Matrice 100 drone through the Manifold embedded computer. DJI has a couple of demo packages and one of them does the video capturing through ROS. I've followed all the steps here https://developer.dji.com/onboard-sdk... , but when I do catkin_make this is what happens:

ubuntu@tegra-ubuntu:~/catkin_ws$ catkin_make --pkg dji_sdk_read_cam Base path: /home/ubuntu/catkin_ws Source space: /home/ubuntu/catkin_ws/src Build space: /home/ubuntu/catkin_ws/build Devel space: /home/ubuntu/catkin_ws/devel Install space: /home/ubuntu/catkin_ws/install ####

Running command: "make cmake_check_build_system" in "/home/ubuntu/catkin_ws/build"

#### ####

Running command: "make -j2 -l2" in "/home/ubuntu/catkin_ws/build/dji_sdk_read_cam"

#### Building CXX object dji_sdk_read_cam/CMakeFiles/dji_sdk_read_cam.dir/src/nv_cam.cpp.o /home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp: In function 'int main(int, char**)': /home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:230:118: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] cam_info.K = {388.40923066779754, 0.0, 318.06257844065226, 0.0, 518.1538449374815, 241.17339016626644, 0.0, 0.0, 1.0};

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:230:13: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] cam_info.K = {388.40923066779754, 0.0, 318.06257844065226, 0.0, 518.1538449374815, 241.17339016626644, 0.0, 0.0, 1.0};

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:231:59: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] cam_info.R = {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0};

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:231:13: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] cam_info.R = {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0};

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:232:131: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] cam_info.P = {373.5429992675781, 0.0, 317.51131336952494, 0.0, 0.0, 504.4360656738281, 240.6131009245937, 0.0, 0.0, 0.0, 1.0, 0.0};

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:232:13: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] cam_info.P = {373.5429992675781, 0.0, 317.51131336952494, 0.0, 0.0, 504.4360656738281, 240.6131009245937, 0.0, 0.0, 0.0, 1.0, 0.0};

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:272:14: error: no match for 'operator=' (operand types are 'cv::Mat' and 'IplImage* {aka _IplImage*}') cvi.image = pImg;

/home/ubuntu/catkin_ws/src/dji_sdk_read_cam/src/nv_cam.cpp:272:14: note: candidates are:

In file included from /usr/local/include/opencv2/core/mat.hpp:3440:0,

             from /usr/local/include/opencv2/core.hpp:59,
             from /usr/local ...
(more)
edit retag flag offensive close merge delete