Comments (5)
I met the similar problem using ROS Fuerte. And I solved it by adding these system dependencies:
sudo apt-get install ros-fuerte-libg2o liblapack-dev libblas-dev freeglut3-dev libqglviewer-qt4-dev libsuitesparse-dev libx11-dev
Hope it will be helpful.
from dvo_slam.
I think this a problem with the g2o version see #12 for a solution
from dvo_slam.
thank you very much for your help.i have tried to add GIT_REVISION=67d5fa7 to the g2o makefile,then i run "rosmake dvo_slam",there were still some errors:
[ rosmake ] Last 40 lineso_slam: 26.8 sec ] [ 1 Active 74/75 Complete ]
{-------------------------------------------------------------------------------
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/block_solver.hpp:198:5: error: request for member ‘resize’ in ‘schurMatrixLookup->g2o::SparseBlockMatrixHashMap::blockCols with MatrixType = Eigen::Matrix<double, 6, 6>’, which is of non-class type ‘int’
In file included from /home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix.h:228:0,
from /home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_optimizer.h:33,
from /home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/include/dvo_slam/local_map.h:24,
from /home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/include/dvo_slam/keyframe_graph.h:25,
from /home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/src/keyframe_graph.cpp:21:
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix.hpp: In member function ‘void g2o::SparseBlockMatrix::takePatternFromHash(g2o::SparseBlockMatrixHashMap&) [with MatrixType = Eigen::Matrix<double, 6, 6>]’:
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/block_solver.hpp:287:3: instantiated from ‘bool g2o::BlockSolver::buildStructure(bool) [with Traits = g2o::BlockSolverTraits<6, 3>]’
/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/src/keyframe_graph.cpp:942:1: instantiated from here
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix.hpp:631:73: error: no type named ‘SparseColumn’ in ‘class g2o::SparseBlockMatrixHashMap<Eigen::Matrix<double, 6, 6> >’
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix.hpp:632:21: error: request for member ‘size’ in ‘(& hashMatrix)->g2o::SparseBlockMatrixHashMap::blockCols with MatrixType = Eigen::Matrix<double, 6, 6>’, which is of non-class type ‘int’
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/block_solver.hpp:287:3: instantiated from ‘bool g2o::BlockSolver::buildStructure(bool) [with Traits = g2o::BlockSolverTraits<6, 3>]’
/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/src/keyframe_graph.cpp:942:1: instantiated from here
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix.hpp:644:7: error: ‘swap’ was not declared in this scope
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix.hpp:644:7: note: suggested alternatives:
/usr/include/c++/4.6/bits/stl_deque.h:1971:5: note: ‘std::swap’
/usr/include/boost/detail/compressed_pair.hpp:431:1: note: ‘boost::swap’
/usr/include/boost/thread/locks.hpp:1103:14: note: ‘boost::detail::swap’
/usr/include/boost/variant/detail/backup_holder.hpp:86:6: note: ‘boost::detail::variant::swap’
/usr/include/boost/signals2/connection.hpp:239:17: note: ‘boost::signals2::swap’
/usr/include/boost/signals2/detail/auto_buffer.hpp:1080:17: note: ‘boost::signals2::detail::swap’
/usr/include/c++/4.6/bits/stl_deque.h:1971:5: note: ‘std::swap’
/usr/include/c++/4.6/bits/stl_deque.h:1971:5: note: ‘std::swap’
/usr/include/c++/4.6/bits/stl_deque.h:1971:5: note: ‘std::swap’
/usr/include/c++/4.6/bits/stl_deque.h:1971:5: note: ‘std::swap’
/usr/include/c++/4.6/bits/move.h:122:5: note: ‘std::swap’
/opt/ros/hydro/include/opencv2/core/core.hpp:2126:17: note: ‘cv::swap’
/usr/include/tbb/concurrent_vector.h:1053:13: note: ‘tbb::swap’
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix_ccs.h: In member function ‘MatrixType* g2o::SparseBlockMatrixHashMap::addBlock(int, int, bool) [with MatrixType = Eigen::Matrix<double, 6, 6>]’:
/home/exbot/rosbuild_ws/sandbox/dvo_slam/g2o/include/g2o/core/sparse_block_matrix_ccs.h:268:7: warning: control reaches end of non-void function [-Wreturn-type]
/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_core/include/dvo/core/datatypes.h: At global scope:
/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_core/include/dvo/core/datatypes.h:33:28: warning: ‘dvo::core::Invalid’ defined but not used [-Wunused-variable]
/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_core/include/dvo/core/datatypes.h:36:24: warning: ‘dvo::core::InvalidDepth’ defined but not used [-Wunused-variable]
make[3]: *** [CMakeFiles/dvo_slam.dir/src/keyframe_graph.cpp.o] Error 1
make[3]: Leaving directory /home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/build' make[2]: *** [CMakeFiles/dvo_slam.dir/all] Error 2 make[2]: Leaving directory
/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/exbot/rosbuild_ws/sandbox/dvo_slam/dvo_slam/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package dvo_slam written to:
[ rosmake ] /home/exbot/.ros/rosmake/rosmake_output-20140923-220414/dvo_slam/build_output.log
[rosmake-2] Finished <<< dvo_slam [FAIL] [ 26.89 seconds ]
[ rosmake ] Halting due to failure in package dvo_slam.
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 75 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/exbot/.ros/rosmake/rosmake_output-20140923-220414
from dvo_slam.
I have the same problem with Ubuntu12.04 and fuerte...
make[3]: *** [CMakeFiles/dvo_slam.dir/src/keyframe_graph.o] Error 1
make[3]: Leaving directory /home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_slam/build' make[2]: *** [CMakeFiles/dvo_slam.dir/all] Error 2 make[2]: Leaving directory
/home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_slam/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/lili/fuerte_workspace/sandbox/dvo_slam/dvo_slam/build'
from dvo_slam.
Thanks for HuixWang. Your solution works.
from dvo_slam.
Related Issues (20)
- Compile without ROS?
- Can I use Kinect V2? HOT 5
- Problems about running speed HOT 6
- Primensense and TF
- Unable to find file "camera_tracker" upon download
- Attempting to install on ros indigo, almost compiles, one small error
- Error with sophus on fuerte
- How to use the package in kinetic HOT 3
- Question about the information matrix
- Why is DVO better than ORB-slam? HOT 1
- rosmake error
- cant find function from the g2o package when compiling dvo_slam HOT 1
- How to run the dvo_slam on ROS Kinetic HOT 2
- kinetic dont have dvo.cfg and fail to compile.fuerte have it
- How to run the package in kinetic with your rgbd in real-time HOT 3
- catkin_make error in dvo_slam on ROS Kinetic HOT 1
- Runtime error when running dvo_slam benchmark
- How to run the package in kinetic??? HOT 1
- Kinetic branch dvo_core sophus
- Jacobian of depth error in dense visual SLAM HOT 1
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 dvo_slam.