Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency versions? #4

Open
andyli opened this issue Jun 12, 2017 · 8 comments
Open

Dependency versions? #4

andyli opened this issue Jun 12, 2017 · 8 comments

Comments

@andyli
Copy link

andyli commented Jun 12, 2017

I'm trying to compile the project, but got several compilation errors. I'm using ROS Kinetic, and got errors about OpenCV, which is of version 3.2 in ROS Kinetic. Maybe this project was developed in another release of ROS or OpenCV?

It would be great if you can clarify.

@dvorak0
Copy link
Owner

dvorak0 commented Jun 13, 2017

The code is only tested under indigo.

@jakeware
Copy link

Would you mind providing the OpenCV version and build options you used? It seems like cuda is required and is not built by default or mentioned in your build documentation. For reference, I have tried the following opencv build options with 14.04, ROS indigo, and OpenCV 2.4.13:

cmake -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=/usr/bin/g++ CMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/home/jakeware/opencv2 -DWITH_TBB=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_V4L=ON -DWITH_QT=OFF -DWITH_OPENGL=ON -DBUILD_FAT_JAVA_LIB=ON -DINSTALL_TO_MANGLED_PATHS=ON -DINSTALL_CREATE_DISTRIB=ON -DENABLE_FAST_MATH=ON -DWITH_IMAGEIO=ON -DWITH_CUBLAS=1 -DCUDA_FAST_MATH=1 -DWITH_GSTREAMER=ON -DCUDA_USE_STATIC_CUDA_RUNTIME=OFF ..

But it seems to result in a cuda related runtime error. Thanks.

@andyli
Copy link
Author

andyli commented Jun 29, 2017

I figured most things out, and created a dockerfile that will build VI-MEAN as an image:
https://github.com/andyli/VI-MEAN/blob/docker/Dockerfile
You may simply use docker or just reuse the RUN commands in a normal Ubuntu Trusty machine with CUDA sdk installed.

However, I don't see the reconstructed mesh in rviz when playing the sample.bag.
I can see the ones in 2016-09-18-*.bag though.

@jakeware
Copy link

This worked for us. Thanks for your help.

Others should note that you have to update the gpu architecture by changing the 'CUDA_GENERATION' for the OpenCV build and the nvcc flags in stereo_mapper CMakeLists.txt.

@maciejmatuszak
Copy link

@jakeware did you build it with OpenCV 3.2.0 or 2.4.
Did anyone build it under ros kinetic and OpenCV 3.2.0?

@jakeware
Copy link

jakeware commented Aug 8, 2017

@maciejmatuszak: We ran that docker build linked above with ros indigo and opencv 2.4.8.

@David-Willo
Copy link

David-Willo commented Oct 6, 2017

@maciejmatuszak Have you solved the problem? I am now building it with OpenCV 3.2.0 and ROS Kinetic under Ubuntu 16.04 but got some error when running the ros node.The error message looks like this "OpenCV Error: Assertion failed (!fixedSize()) in release", there may be something wrong about the matrix.cpp of OpenCV3.2, but I can't figure out which line in the stereo_mapper source code lead to the error.

The only thing that I change is the stereobm part in the stereo_mapper_node.cpp, using bm->compute of OpenCV3 API instead of bm.operator() of OpenCV2 API. Some header files need to be change to migrate the code to OpenCV3. It can be complied successfully but the error at run time is a trouble.

Can someone give me some advice?


Edited on Oct 17
Recompile the project under Ubuntu14.04 with ROS Indigo and OpenCV2, everything works fine.

@905805952
Copy link

@andyli
Excuse me ,will see the reconstructed mesh in rviz when playing the sample.bag ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants