uzh-rpg / rpg_svo

Semi-direct Visual Odometry
GNU General Public License v3.0
2.09k stars 863 forks source link

Failed to run svo #173

Open vincentsogetibordes opened 8 years ago

vincentsogetibordes commented 8 years ago

Hello all,

I am on Raspberry PI 3 Raspbian Jessie.

I've installed Fast SVO (with ROS) and have downloaded all the required packages (sophus,fast, svo and vikit).

When i type "catkin_make", i have this error :

[ 41%] Building CXX object rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/math_utils.cpp.o In file included from /home/pi/catkin_ws/src/rpg_vikit/vikit_common/include/vikit/omni_camera.h:15:0, from /home/pi/catkin_ws/src/rpg_vikit/vikit_common/src/omni_camera.cpp:10: /home/pi/catkin_ws/src/rpg_vikit/vikit_common/include/vikit/math_utils.h:14:24: fatal error: sophus/se3.h: Aucun fichier ou dossier de ce type

include <sophus/se3.h>

                    ^

compilation terminated. In file included from /home/pi/catkin_ws/src/rpg_vikit/vikit_common/include/vikit/atan_camera.h:20:0, from /home/pi/catkin_ws/src/rpg_vikit/vikit_common/src/atan_camera.cpp:14: /home/pi/catkin_ws/src/rpg_vikit/vikit_common/include/vikit/math_utils.h:14:24: fatal error: sophus/se3.h: Aucun fichier ou dossier de ce type

include <sophus/se3.h>

                    ^

compilation terminated. In file included from /home/pi/catkin_ws/src/rpg_vikit/vikit_common/src/math_utils.cpp:8:0: /home/pi/catkin_ws/src/rpg_vikit/vikit_common/include/vikit/math_utils.h:14:24: fatal error: sophus/se3.h: Aucun fichier ou dossier de ce type

include <sophus/se3.h>

                    ^

compilation terminated. [ 41%] Built target svo_msgs_generate_messages_eus Scanning dependencies of target svo_msgs_generate_messages [ 41%] Built target svo_msgs_generate_messages [ 43%] Building CXX object rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/vision.cpp.o rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/build.make:100: recipe for target 'rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/math_utils.cpp.o' failed make[2]: * [rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/math_utils.cpp.o] Error 1 make[2]: * Attente des tâches non terminées.... rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/build.make:77: recipe for target 'rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/omni_camera.cpp.o' failed make[2]: * [rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/omni_camera.cpp.o] Error 1 rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/build.make:54: recipe for target 'rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/atan_camera.cpp.o' failed make[2]: * [rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/src/atan_camera.cpp.o] Error 1 CMakeFiles/Makefile2:1808: recipe for target 'rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/all' failed make[1]: * [rpg_vikit/vikit_common/CMakeFiles/vikit_common.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: * [all] Error 2 Invoking "make -j4 -l4" failed

Could I have some help with this? Thank you in advance!

sujunqin123 commented 7 years ago

I am also on Raspberry PI 3 Raspbian Jessie. But when i type "catkin_make", i have this error :catkin_make Base path: /home/pi/ros_catkin_ws Source space: /home/pi/ros_catkin_ws/src Build space: /home/pi/ros_catkin_ws/build Devel space: /home/pi/ros_catkin_ws/devel Install space: /home/pi/ros_catkin_ws/install

Running command: "cmake /home/pi/ros_catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/pi/ros_catkin_ws/install -G Unix Makefiles" in "/home/pi/ros_catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/pi/ros_catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/indigo -- This workspace overlays: /opt/ros/indigo -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/pi/ros_catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.18 CMake Warning (dev) at catkin/CMakeLists.txt:5 (project): Policy CMP0048 is not set: project() command manages VERSION variables. Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

catkin_VERSION

This warning is for project developers. Use -Wno-dev to suppress it.

-- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 197 packages in topological order: -- ~~ - genmsg -- ~~ - gencpp -- ~~ - genlisp -- ~~ - genpy -- ~~ - angles -- ~~ - bond_core (metapackage) -- ~~ - cmake_modules -- ~~ - class_loader -- ~~ - common_msgs (metapackage) -- ~~ - common_tutorials (metapackage) -- ~~ - convex_decomposition -- ~~ - cpp_common -- ~~ - desktop (metapackage) -- ~~ - diagnostics (metapackage) -- ~~ - eigen_stl_containers -- ~~ - executive_smach (metapackage) -- ~~ - geometry (metapackage) -- ~~ - geometry_tutorials (metapackage) -- ~~ - gl_dependency -- ~~ - ivcon -- ~~ - media_export -- ~~ - message_generation -- ~~ - message_runtime -- ~~ - mk -- ~~ - nodelet_core (metapackage) -- ~~ - octomap (plain cmake) -- ~~ - orocos_kdl (plain cmake) -- ~~ - pr2_description -- ~~ - python_orocos_kdl (plain cmake) -- ~~ - qt_dotgraph -- ~~ - qt_gui -- ~~ - qt_gui_py_common -- ~~ - qwt_dependency -- ~~ - random_numbers -- ~~ - robot (metapackage) -- ~~ - robot_model (metapackage) -- ~~ - ros (metapackage) -- ~~ - ros_base (metapackage) -- ~~ - ros_comm (metapackage) -- ~~ - ros_core (metapackage) -- ~~ - ros_tutorials (metapackage) -- ~~ - rosbag_migration_rule -- ~~ - rosbash -- ~~ - rosboost_cfg -- ~~ - rosbuild -- ~~ - rosclean -- ~~ - roscpp_core (metapackage) -- ~~ - roscpp_traits -- ~~ - roscreate -- ~~ - rosgraph -- ~~ - roslang -- ~~ - roslint -- ~~ - rosmake -- ~~ - rosmaster -- ~~ - rosmsg -- ~~ - rospack -- ~~ - roslib -- ~~ - rosparam -- ~~ - rospy -- ~~ - rosservice -- ~~ - rostime -- ~~ - roscpp_serialization -- ~~ - python_qt_binding -- ~~ - roslaunch -- ~~ - rosunit -- ~~ - rosconsole -- ~~ - pluginlib -- ~~ - qt_gui_cpp -- ~~ - resource_retriever -- ~~ - rosconsole_bridge -- ~~ - roslz4 -- ~~ - rosbag_storage -- ~~ - rostest -- ~~ - rqt_action -- ~~ - rqt_bag -- ~~ - rqt_bag_plugins -- ~~ - rqt_common_plugins (metapackage) -- ~~ - rqt_console -- ~~ - rqt_dep -- ~~ - rqt_graph -- ~~ - rqt_gui -- ~~ - rqt_logger_level -- ~~ - rqt_moveit -- ~~ - rqt_msg -- ~~ - rqt_nav_view -- ~~ - rqt_plot -- ~~ - rqt_pose_view -- ~~ - rqt_publisher -- ~~ - rqt_py_console -- ~~ - rqt_reconfigure -- ~~ - rqt_robot_dashboard -- ~~ - rqt_robot_monitor -- ~~ - rqt_robot_plugins (metapackage) -- ~~ - rqt_robot_steering -- ~~ - rqt_runtime_monitor -- ~~ - rqt_service_caller -- ~~ - rqt_shell -- ~~ - rqt_srv -- ~~ - rqt_tf_tree -- ~~ - rqt_top -- ~~ - rqt_topic -- ~~ - rqt_web -- ~~ - smach -- ~~ - smclib -- ~~ - std_msgs -- ~~ - actionlib_msgs -- ~~ - bond -- ~~ - diagnostic_msgs -- ~~ - geometry_msgs -- ~~ - eigen_conversions -- ~~ - kdl_conversions -- ~~ - nav_msgs -- ~~ - rosgraph_msgs -- ~~ - rqt_py_common -- ~~ - sensor_msgs -- ~~ - image_geometry -- ~~ - map_msgs -- ~~ - shape_msgs -- ~~ - smach_msgs -- ~~ - std_srvs -- ~~ - stereo_msgs -- ~~ - svo_msgs -- ~~ - tf2_msgs -- ~~ - tf2 -- ~~ - trajectory_msgs -- ~~ - control_msgs -- ~~ - urdf_parser_plugin -- ~~ - visualization_msgs -- ~~ - geometric_shapes -- ~~ - visualization_tutorials (metapackage) -- ~~ - viz (metapackage) -- ~~ - xmlrpcpp -- ~~ - roscpp -- ~~ - bondcpp -- ~~ - bondpy -- ~~ - collada_parser -- ~~ - joint_state_publisher -- ~~ - nodelet -- ~~ - nodelet_tutorial_math -- ~~ - pluginlib_tutorials -- ~~ - roscpp_tutorials -- ~~ - rosout -- ~~ - cv_bridge -- ~~ - diagnostic_aggregator -- ~~ - diagnostic_updater -- ~~ - diagnostic_common_diagnostics -- ~~ - dynamic_reconfigure -- ~~ - filters -- ~~ - message_filters -- ~~ - image_transport -- ~~ - rosnode -- ~~ - rospy_tutorials -- ~~ - rostopic -- ~~ - roswtf -- ~~ - rqt_gui_cpp -- ~~ - rqt_gui_py -- ~~ - rqt_image_view -- ~~ - rqt_svo -- ~~ - self_test -- ~~ - smach_ros -- ~~ - svo_analysis -- ~~ - tf2_py -- ~~ - topic_tools -- ~~ - rosbag -- ~~ - actionlib -- ~~ - actionlib_tutorials -- ~~ - diagnostic_analysis -- ~~ - nodelet_topic_tools -- ~~ - rqt_launch -- ~~ - tf2_ros -- ~~ - tf -- ~~ - interactive_markers -- ~~ - interactive_marker_tutorials -- ~~ - laser_geometry -- ~~ - tf2_kdl -- ~~ - tf_conversions -- ~~ - turtlesim -- ~~ - turtle_actionlib -- ~~ - turtle_tf -- ~~ - turtle_tf2 -- ~~ - urdf -- ~~ - collada_urdf -- ~~ - kdl_parser -- ~~ - robot_state_publisher -- ~~ - rviz -- ~~ - librviz_tutorial -- ~~ - rqt_rviz -- ~~ - rviz_plugin_tutorials -- ~~ - rviz_python_tutorial -- ~~ - urdf_tutorial -- ~~ - vikit_common -- ~~ - vikit_py -- ~~ - vikit_ros -- ~~ - svo -- ~~ - svo_ros -- ~~ - visualization_marker_tutorials -- ~~ - xacro -- ~~~~~~~~~~~~~ CMake Error at catkin/cmake/catkin_workspace.cmake:95 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:63 (catkin_workspace)

-- Configuring incomplete, errors occurred! See also "/home/pi/ros_catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/pi/ros_catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

Have you meet that error? Thank you in advance!

AlexisTM commented 7 years ago

@sujunqin123

This workspace contains non-catkin packages in it, and catkin cannot build
a non-homogeneous workspace without isolation. Try the
'catkin_make_isolated' command instead.

You can try catkin_make_isolated