Comments (16)
"and if I swap glviewer.cpp with glviewer2.cpp in cmakelist.txt.
it shows error.
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer2.cpp: In constructor 'GLViewer::GLViewer(QWidget_)':
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer2.cpp:20:39: error: type 'QWidget' is not a direct base of 'GLViewer'
GLViewer::GLViewer(QWidget *parent) : QWidget(parent) { }
^
make[2]: _ [rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/glviewer2.o] Error 1
make[1]: *** [rgbdslam_v2/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2"
**
You can resolve it if you change GLViewer::GLViewer(QWidget *parent) : QWidget(parent) with:
GLViewer::GLViewer(QWidget *parent) : QGLWidget(parent)
In your case, you have to do it in ./rgbdslam_v2/src/glviewer2.cpp
**
from rgbdslam_v2.
The problem is, that you have Qt5 instead of Qt4. You can try to replace the line 134 (in main.cpp)
if (app.type() == QApplication::GuiClient){
with
if (ParameterServer::instance()->get<bool>("use_gui")){
but I suspect that this is just the tip of the iceberg.
from rgbdslam_v2.
Thank you for the answer. I resolved that error but I get another one. What is the best version of Qt for rgbdslam: Qt4 or Qt5?
from rgbdslam_v2.
Rgbdslam relies on QT4. See their documentation on how to install QT4 along side QT5 and specify your program path
Sent from my iPhone
On Nov 4, 2015, at 9:15 AM, Ghinda94 [email protected] wrote:
Thank you for the answer. I resolved that error but I get another one. What is the best version of Qt for rgbdslam: Qt4 or Qt5?
—
Reply to this email directly or view it on GitHub.
from rgbdslam_v2.
I have install Qt4. If I run catkin_make I get the following errors:
In file included from /usr/include/GL/gl.h:2059:0,
from /usr/include/GL/freeglut_std.h:128,
from /usr/include/GL/glut.h:17,
from /home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:24:
/usr/include/GL/glext.h:468:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'
typedef ptrdiff_t GLsizeiptr;
^
In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,
from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
from /home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:22:
/usr/include/GLES2/gl2.h:69:25: error: 'GLsizeiptr' has a previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
typedef khronos_ssize_t GLsizeiptr;
^
In file included from /usr/include/GL/gl.h:2059:0,
from /usr/include/GL/freeglut_std.h:128,
from /usr/include/GL/glut.h:17,
from /home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:24:
/usr/include/GL/glext.h:469:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
typedef ptrdiff_t GLintptr;
^
In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,
from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
from /home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:22:
/usr/include/GLES2/gl2.h:70:26: error: 'GLintptr' has a previous declaration as 'typedef khronos_intptr_t GLintptr'
typedef khronos_intptr_t GLintptr;
^
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp: In member function 'void GLViewer::drawOneCloud(int)':
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:341:75: error: invalid static_cast from type 'qreal* {aka float_}' to type 'GLdouble_ {aka double_}'
glMultMatrixd(static_cast<GLdouble_>( (cloud_matrices)[i].data() ));//works as long as qreal and GLdouble are typedefs to double (might depend on hardware)
^
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp: In member function 'void GLViewer::drawClouds(float)':
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:377:64: error: invalid static_cast from type 'qreal {aka float_}' to type 'GLdouble_ {aka double_}'
glMultMatrixd(static_cast<GLdouble_>( viewpoint_tf_.data() ));//works as long as qreal and GLdouble are typedefs to double (might depend on hardware)
^
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:416:75: error: invalid static_cast from type 'qreal* {aka float_}' to type 'GLdouble_ {aka double_}'
glMultMatrixd(static_cast<GLdouble_>( (cloud_matrices)[i].data() ));//works as long as qreal and GLdouble are typedefs to double (might depend on hardware)
^
make[2]: ** [rgbdslam_v2-indigo/CMakeFiles/rgbdslam.dir/src/glviewer.o] Error 1
make[1]: *** [rgbdslam_v2-indigo/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
from rgbdslam_v2.
Yea you have to modify GLES2 and some other files. Are you doing this on an
ARM board?
On Wed, Nov 4, 2015 at 11:35 AM, Ghinda94 [email protected] wrote:
I have install Qt4. If I run catkin_make I get the following errors:
In file included from /usr/include/GL/gl.h:2059:0,
from /usr/include/GL/freeglut_std.h:128,
from /usr/include/GL/glut.h:17,
from
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:24:
/usr/include/GL/glext.h:468:19: error: conflicting declaration 'typedef
ptrdiff_t GLsizeiptr'
typedef ptrdiff_t GLsizeiptr;
^
In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,
from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
from
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:22:
/usr/include/GLES2/gl2.h:69:25: error: 'GLsizeiptr' has a previous
declaration as 'typedef khronos_ssize_t GLsizeiptr'
typedef khronos_ssize_t GLsizeiptr;
^
In file included from /usr/include/GL/gl.h:2059:0,
from /usr/include/GL/freeglut_std.h:128,
from /usr/include/GL/glut.h:17,
from
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:24:
/usr/include/GL/glext.h:469:19: error: conflicting declaration 'typedef
ptrdiff_t GLintptr'
typedef ptrdiff_t GLintptr;
^
In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,
from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
from
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:22:
/usr/include/GLES2/gl2.h:70:26: error: 'GLintptr' has a previous
declaration as 'typedef khronos_intptr_t GLintptr'
typedef khronos_intptr_t GLintptr;
^
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:
In member function 'void GLViewer::drawOneCloud(int)':
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:341:75:
error: invalid static_cast from type 'qreal* {aka float_}' to type
'GLdouble_ {aka double
}' glMultMatrixd(static_cast<GLdouble>( (cloud_matrices)[i].data() ));//works as long as qreal and GLdouble are
typedefs to double (might depend on hardware) ^
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp: In
member function 'void GLViewer::drawClouds(float)':
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:377:64:
error: invalid static_cast from type 'qreal {aka float_}' to type
'GLdouble_ {aka double
}' glMultMatrixd(static_cast<GLdouble>( viewpoint_tf_.data() ));//works
as long as qreal and GLdouble are typedefs to double (might depend on
hardware)
^
/home/ubuntu/rgbdslam_catkin_ws/src/rgbdslam_v2-indigo/src/glviewer.cpp:416:75:
error: invalid static_cast from type 'qreal* {aka float_}' to type
'GLdouble_ {aka double
}' glMultMatrixd(static_cast<GLdouble>( (cloud_matrices)[i].data() ));//works as long as qreal and GLdouble are
typedefs to double (might depend on hardware) ^ make[2]: **
[rgbdslam_v2-indigo/CMakeFiles/rgbdslam.dir/src/glviewer.o] Error 1
make[1]: *** [rgbdslam_v2-indigo/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2—
Reply to this email directly or view it on GitHub
#17 (comment)
.
from rgbdslam_v2.
Yes. I use Nvidia Jetson TK1. Do you know how to install rgbdslam on it?
from rgbdslam_v2.
You need to modify a ton of stuff. We were going to put out instructions for 12.04 but I'm working on moving to 14.04 now
Sent from my iPhone
On Nov 5, 2015, at 2:51 AM, Ghinda94 [email protected] wrote:
Yes. I use Nvidia Jetson TK1. Do you know how to install rgbdslam on it?
—
Reply to this email directly or view it on GitHub.
from rgbdslam_v2.
Ok. Thank you!
from rgbdslam_v2.
If you don't need the 3D visualization within rgbdslam, you can swap glviewer.cpp with glviewer2.cpp (either in CmakeLists.txt, or in file system), which is just an empty shell I made for someone trying to port it to some embedded hardware with GLES.
from rgbdslam_v2.
I have the fix for that error somewhere. You need to redefine your pointers in your GLES include file
On Nov 9, 2015, at 3:22 PM, Felix Endres [email protected] wrote:
If you don't need the 3D visualization within rgbdslam, you can swap glviewer.cpp with glviewer2.cpp (either in CmakeLists.txt, or in file system), which is just an empty shell I made for someone trying to port it to some embedded hardware with GLES.
—
Reply to this email directly or view it on GitHub.
from rgbdslam_v2.
Hi kbalisciano,
Would you teach me how to redefine it? I follow the log and redefine and it still have some error as below.
I am also use Tegra TK1.
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer.cpp: In member function 'void GLViewer::drawOneCloud(int)':
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer.cpp:341:75: error: invalid static_cast from type 'qreal* {aka float_}' to type 'GLdouble_ {aka double_}'
glMultMatrixd(static_cast<GLdouble_>( (cloud_matrices)[i].data() ));//works as long as qreal and GLdouble are typedefs to double (might depend on hardware)
^
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer.cpp: In member function 'void GLViewer::drawClouds(float)':
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer.cpp:377:64: error: invalid static_cast from type 'qreal {aka float_}' to type 'GLdouble_ {aka double_}'
glMultMatrixd(static_cast<GLdouble_>( viewpoint_tf_.data() ));//works as long as qreal and GLdouble are typedefs to double (might depend on hardware)
^
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer.cpp:416:75: error: invalid static_cast from type 'qreal* {aka float_}' to type 'GLdouble_ {aka double_}'
glMultMatrixd(static_cast<GLdouble_>( (cloud_matrices)[i].data() ));//works as long as qreal and GLdouble are typedefs to double (might depend on hardware)
^
make[2]: ** [rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/glviewer.o] Error 1
make[1]: *** [rgbdslam_v2/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
and if I swap glviewer.cpp with glviewer2.cpp in cmakelist.txt.
it shows error.
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer2.cpp: In constructor 'GLViewer::GLViewer(QWidget_)':
/home/ubuntu/catkin_ws/src/rgbdslam_v2/src/glviewer2.cpp:20:39: error: type 'QWidget' is not a direct base of 'GLViewer'
GLViewer::GLViewer(QWidget *parent) : QWidget(parent) { }
^
make[2]: *_* [rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/glviewer2.o] Error 1
make[1]: *** [rgbdslam_v2/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Thanks!!
from rgbdslam_v2.
Take a look at my QT4 repo. The instructions aren't all that clear but the source code has been modified slightly. My instructions show a ghost installation, so basically we install QT4 to make all of the correct symbolic links and then copy our build directory over. This isn't completely necessary but I haven't found time to rewrite the installation documentation
from rgbdslam_v2.
Also @felixendres I would like to let you know that RGBDSLAM works on the ODROID XU3 under 12.04 Hydro and 14.04 Indigo. We only get ~10-15FPS from the Kinect and it is pretty slow if we use the default number of keypoint, etc but with tuning it performs very well for a sub $100 SOC computer.
from rgbdslam_v2.
Nice!
from rgbdslam_v2.
@hmalatini Thank you ! But now raises a new issue:
_/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/misc.cpp: In function 'QMatrix4x4 g2o2QMatrix(g2o::SE3Quat)':
/rgbdslam_catkin_ws/src/rgbdslam_v2-hydro/src/misc.cpp:100 :52: error: invalid static_cast from type 'Eigen::PlainObjectBase<Eigen::Matrix<double, 4, 4> >::Scalar* {aka double*}' to type 'qreal* {aka float*}'
make[2]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/src/misc.o] Error 1
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Thanks a lot!
from rgbdslam_v2.
Related Issues (20)
- what(): Time is out of dual 32-bit range (using rosbag)
- g2ofork build isuue HOT 1
- Running rgbd slam v2 on sequence of images/frames from video
- can not compile due to /usr/bin/ld: cannot find -lIL HOT 1
- Problem
- CMake Error:_SOLVER_CHOLMOD_LIB notfound HOT 1
- rgbdslam_v2 shutdown when receiving images
- docker image can be nice HOT 1
- Nothing is being published on /rgbdslam/batch_clouds HOT 1
- error: call of overloaded ‘round(float)’ is ambiguous HOT 2
- Is /imu topic used when I run rosluanch rgbdslam.lauch? HOT 2
- Error while loading shared libraries: libg2o_ext_freeglut_minimal.so: cannot open shared object file: No such file or directory HOT 3
- With the topics set according to kinect v2 node, Nothing show on GUI HOT 1
- error: no matching function for call to ‘g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >::BlockSolver(g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >::LinearSolverType*&)’ = new g2o::BlockSolverX(linearSolver); HOT 1
- GlobalUtil.cpp:(.text._ZN10LiteWindowD2Ev[_ZN10LiteWindowD5Ev]+0x43):undefined reference to `__glutInit
- REQUIRED process [rgbdslam-25] has died! HOT 3
- Breaking detection iterations, because of missing depth HOT 3
- could you please supply a docker image? HOT 1
- ubuntu16.04 ROSkinetic collect2: error: ld returned 1 exit status makefile:169: recipe for target 'siftgpu' failed make[3]: *** [siftgpu] Error 1 HOT 1
- Using a monocular camera to run rgbdslamv2 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rgbdslam_v2.