Ask Your Question
0

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

asked 2016-03-22 02:03:21 -0500

sivaprasath gravatar image

updated 2016-03-22 04:15:11 -0500

gvdhoorn gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

I had same error message. It took a lot of time since you have asked here. I expect you could solve this error whose cause was in "no matching function for call to ‘qglviewer::ManipulatedCameraFrame::getPosition(float&, float&, float&)’. Finaly, how did you do to finish compiling without any error?

masanori_1120 gravatar image masanori_1120  ( 2016-07-13 08:49:12 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2016-08-23 11:14:37 -0500

FloFra gravatar image

Just change

float x,y,z;

to

qreal x,y,z;

and it should compile just fine.

edit flag offensive delete link more

Comments

it didn't work out. the same issue occur

Tung Nguyen gravatar image Tung Nguyen  ( 2016-10-17 13:53:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-22 02:03:21 -0500

Seen: 502 times

Last updated: Mar 22 '16