Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I get this error when i do rosmake lsd_slam. What may be wrong..??

there is no wrong with qgl viewer installation.. its with usr/lib/ & usr/include directories... what may be wrong..? Thanks in advance for your answer...

[rosmake-3] Starting >>> rosservice [ make ]
[rosmake-3] Finished <<< rosservice ROS_NOBUILD in package rosservice No Makefile in package rosservice
[rosmake-3] Starting >>> dynamic_reconfigure [ make ]
[rosmake-3] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure No Makefile in package dynamic_reconfigure
[rosmake-3] Starting >>> lsd_slam_viewer [ make ]
[ rosmake ] Last 40 linesd_slam_viewer: 10.6 sec ] [ 1 Active 40/42 Complete ] {------------------------------------------------------------------------------- In file included from /usr/local/include/QGLViewer/keyFrameInterpolator.h:31:0, from /usr/local/include/QGLViewer/camera.h:26, from /usr/local/include/QGLViewer/qglviewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22: /usr/local/include/QGLViewer/frame.h:188:7: note: void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const void getPosition(qreal& x, qreal& y, qreal& z) const;

     ^

/usr/local/include/QGLViewer/frame.h:188:7: note: no known conversion for argument 1 from ‘float’ to ‘qreal& {aka double&}’

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp: In member function ‘void KeyFrameGraphDisplay::addGraphMsg(lsd_slam_viewer::keyframeGraphMsgConstPtr)’:

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp:165:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<msg->numConstraints;i++) ^

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp: In member function ‘virtual void PointCloudViewer::keyPressEvent(QKeyEvent*)’:

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:327:44: error: no matching function for call to ‘qglviewer::ManipulatedCameraFrame::getPosition(float&, float&, float&)’ camera()->frame()->getPosition(x,y,z); ^

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:327:44: note: candidate is: In file included from /usr/local/include/QGLViewer/keyFrameInterpolator.h:31:0, from /usr/local/include/QGLViewer/camera.h:26, from /usr/local/include/QGLViewer/qglviewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22:

/usr/local/include/QGLViewer/frame.h:188:7: note: void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const void getPosition(qreal& x, qreal& y, qreal& z) const; ^

/usr/local/include/QGLViewer/frame.h:188:7: note: no known conversion for argument 1 from ‘float’ to ‘qreal& {aka double&}’

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp: In member function ‘void KeyFrameGraphDisplay::draw()’:

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp:90:81: warning: ignoring return value of ‘int system(const char)’, declared with attribute warn_unused_result [-Wunused-result] system(("rm "+ros::package::getPath("lsd_slam_viewer")+"/pc_tmp.ply").c_str()); ^ make[3]: [CMakeFiles/viewer.dir/src/main_viewer.cpp.o] Error 1 make[3]: Waiting for unfinished jobs.... make[3]: ** [CMakeFiles/viewer.dir/src/PointCloudViewer.cpp.o] Error 1 make[3]: Leaving directory /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build' make[2]: *** [CMakeFiles/viewer.dir/all] Error 2 make[2]: Leaving directory/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build'

make[1]: * [all] Error 2 make[1]: Leaving directory `/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package lsd_slam_viewer written to:

[ rosmake ] /home/ecempc30/.ros/rosmake/rosmake_output-20160322-121939/lsd_slam_viewer/build_output.log [rosmake-3] Finished <<< lsd_slam_viewer [FAIL] [ 10.65 seconds ]
[ rosmake ] Halting due to failure in package lsd_slam_viewer. [ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 41 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/ecempc30/.ros/rosmake/rosmake_output-20160322-121939

I get this error when i do rosmake lsd_slam. What may be wrong..??

there is no wrong with qgl viewer installation.. its with usr/lib/ & usr/include directories... what may be wrong..? Thanks in advance for your answer...

[rosmake-3] Starting >>> rosservice [ make ] 
[rosmake-3] Finished <<< rosservice ROS_NOBUILD in package rosservice No Makefile in package rosservice
[rosmake-3] Starting >>> dynamic_reconfigure [ make ]
[rosmake-3] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure No Makefile in package dynamic_reconfigure
[rosmake-3] Starting >>> lsd_slam_viewer [ make ]
[ rosmake ] Last 40 linesd_slam_viewer: 10.6 sec ] [ 1 Active 40/42 Complete ] {------------------------------------------------------------------------------- In file included from /usr/local/include/QGLViewer/keyFrameInterpolator.h:31:0, from /usr/local/include/QGLViewer/camera.h:26, from /usr/local/include/QGLViewer/qglviewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22: /usr/local/include/QGLViewer/frame.h:188:7: note: void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const void getPosition(qreal& x, qreal& y, qreal& z) const;

const;

         ^

/usr/local/include/QGLViewer/frame.h:188:7: note: no known conversion for argument 1 from ‘float’ to ‘qreal& {aka double&}’

double&}’ /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp: In member function ‘void KeyFrameGraphDisplay::addGraphMsg(lsd_slam_viewer::keyframeGraphMsgConstPtr)’:

KeyFrameGraphDisplay::addGraphMsg(lsd_slam_viewer::keyframeGraphMsgConstPtr)’: /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp:165:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<msg->numConstraints;i++) ^

^ /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp: In member function ‘virtual void PointCloudViewer::keyPressEvent(QKeyEvent*)’:

PointCloudViewer::keyPressEvent(QKeyEvent*)’: /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:327:44: error: no matching function for call to ‘qglviewer::ManipulatedCameraFrame::getPosition(float&, float&, float&)’ camera()->frame()->getPosition(x,y,z); ^

^ /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:327:44: note: candidate is: In file included from /usr/local/include/QGLViewer/keyFrameInterpolator.h:31:0, from /usr/local/include/QGLViewer/camera.h:26, from /usr/local/include/QGLViewer/qglviewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.h:26, from /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22:

/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/PointCloudViewer.cpp:22: /usr/local/include/QGLViewer/frame.h:188:7: note: void qglviewer::Frame::getPosition(qreal&, qreal&, qreal&) const void getPosition(qreal& x, qreal& y, qreal& z) const; ^

^ /usr/local/include/QGLViewer/frame.h:188:7: note: no known conversion for argument 1 from ‘float’ to ‘qreal& {aka double&}’

double&}’ /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp: In member function ‘void KeyFrameGraphDisplay::draw()’:

KeyFrameGraphDisplay::draw()’: /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/src/KeyFrameGraphDisplay.cpp:90:81: warning: ignoring return value of ‘int system(const char)’, char*)’, declared with attribute warn_unused_result [-Wunused-result] system(("rm "+ros::package::getPath("lsd_slam_viewer")+"/pc_tmp.ply").c_str()); ^ make[3]: *** [CMakeFiles/viewer.dir/src/main_viewer.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: ** *** [CMakeFiles/viewer.dir/src/PointCloudViewer.cpp.o] Error 1 make[3]: Leaving directory /home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build' `/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build' make[2]: *** [CMakeFiles/viewer.dir/all] Error 2 make[2]: Leaving directory/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build'

directory `/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build' make[1]: * *** [all] Error 2 make[1]: Leaving directory `/home/ecempc30/rosbuild_ws/package_dir/lsd_slam/lsd_slam_viewer/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package lsd_slam_viewer written to:

to: [ rosmake ] /home/ecempc30/.ros/rosmake/rosmake_output-20160322-121939/lsd_slam_viewer/build_output.log [rosmake-3] Finished <<< lsd_slam_viewer [FAIL] [ 10.65 seconds ]
[ rosmake ] Halting due to failure in package lsd_slam_viewer. [ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 41 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/ecempc30/.ros/rosmake/rosmake_output-20160322-121939

/home/ecempc30/.ros/rosmake/rosmake_output-20160322-121939