yuxng / DA-RNN

Semantic Mapping with Data Associated Recurrent Neural Networks
MIT License
170 stars 72 forks source link

Steps for ubuntu 14.04 #10

Open kevinkit opened 6 years ago

kevinkit commented 6 years ago

Since Ubuntu 16.04 seems to have some issues regarding to pangolin ( #7 ) and @JackHenry1992 successfully got the kinect_fusion code to compile on Ubuntu 14.04 , I am kindly asking to provide the steps needed to get it run on ubuntu 14.04. (see #9 for previous discussions)

@DonBilb0

JackHenry1992 commented 6 years ago

All detail steps as follows:

pangolin

opengl build

git clone https://github.com/stevenlovegrove/Pangolin.git
git checkout 7bab0ae6b3e0971ae16e872ef8f5637d571ac2ac
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .

Sophus

needed correct version of Sophus

git clone https://github.com/strasdat/Sophus  
git checkout 341346e306d657ac8acaf052939ffd85dacd8f82
cd Sophus
mkdir build
cd build
cmake ..
make -j32
make install

nanoflann

download

mkdir build
cd build
cmake ..
make 
make install

Eigen

replace eigen use this version

tar -xzvf 
copy download eigen/* to /usr/include/eigen3/
copy download eigen/* to /usr/local/lib/python2.7/dist-packages/tensorflow/include/

Kinect_fusion

sudo apt-get install libnlopt-dev
sudo apt-get install libmetis-dev
sudo apt-get install liblapack-dev

Compile the Cython interface for RNN and KinectFusion

python setup.py build_ext --inplace

# if numpy/arrayobject.h not such file
# modify line 144 of setup.py
include_dirs =[numpy_include, ...]

run test

sudo pip install easydict
sudo apt-get install python-yaml

# create data link 
ln -s path/to/data data

./experiments/scripts/rgbd_scene_multi_rgbd.sh 0
kevinkit commented 6 years ago

Thank you really much for that ! Are the steps chornological ordererd?

Pangolin needs a Eigen installation, does it need the provided Eigen isntallation, or the "normal" one?

JackHenry1992 commented 6 years ago

I build Pangolin with the provided Eigen by @yuxng . Have you built ok? For me, only Eigen ordered.

wolf943134497 commented 6 years ago

Hi, @JackHenry1992 .Thank you really much for that ! I install all dependencies of KinectFusion, when Compile KinectFusion with cmake, I get the error

/home/gwm/DA-RNN/lib/kinect_fusion/include/df/prediction/raycast.h(17): error: explicit type is missing ("int" assumed) /home/gwm/DA-RNN/lib/kinect_fusion/include/df/prediction/raycast.h(17): error: qualified name is not allowed /home/gwm/DA-RNN/lib/kinect_fusion/include/df/prediction/raycast.h(17): error: expected a ")" /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(63): error: explicit type is missing ("int" assumed) /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(63): error: qualified name is not allowed /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(63): error: expected a ")" /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(129): error: explicit type is missing ("int" assumed) /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(129): error: qualified name is not allowed /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(129): error: expected a ")" /home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/cameraModel.h(22): error: name followed by "::" must be a class or namespace name /home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/camera.h(13): error: name followed by "::" must be a class or namespace name /home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/camera.h(36): error: name followed by "::" must be a class or namespace name /home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/cameraFactory.h(18): error: name followed by "::" must be a class or namespace name /home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/cameraFactory.h(20): error: name followed by "::" must be a class or namespace name /home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/poly3.h(26): error: name followed by "::" must be a class or namespace name /home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(155): error: no instance of function template "df::raycast" matches the specified type 16 errors detected in the compilation of "/tmp/tmpxft_00003140_00000000-7_raycast.cpp1.ii".

--error 0x2 --

CMake Error at kfusion_generated_raycast.cu.o.cmake:264 (message): Error generating file /home/gwm/DA-RNN/lib/kinect_fusion/build/CMakeFiles/kfusion.dir/src/prediction/./kfusion_generated_raycast.cu.o

seem like some Syntax error. Ubuntu14.04 CUDA8.0 cmake 3.5.2 gcc 4.8.5 . Did you run successfully? Can you provide the environment configuration information? Thanks!

kevinkit commented 6 years ago

Hi @wolf943134497 , I had this error, too and was able to resolve it with the correct Pangolin version and you may want to check out #7 and try the mentioned fixes there