hector_slamのcatkin_makeについて

1,743 views
Skip to first unread message

NAOKI K

unread,
Feb 23, 2017, 9:49:55 PM2/23/17
to ROS JAPAN Users Group
hector_slamを使用したいため、以下のコマンドで~/catkin_ws/srcにおいてgit cloneしました。

git clone https://github.com/tu-darmstadt-ros-pkg/hector_slam.git

そのあと、~/catkin_wsにおいて、catkin_makeをしました。
すると、いかのようなエラーが表示されました。

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Base path: /home/ros1/catkin_ws
Source space: /home/ros1/catkin_ws/src
Build space: /home/ros1/catkin_ws/build
Devel space: /home/ros1/catkin_ws/devel
Install space: /home/ros1/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ros1/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ros1/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/ros1/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/ros1/catkin_ws/devel;/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/ros1/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
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 13 packages in topological order:
-- ~~  - hector_slam (metapackage)
-- ~~  - hector_slam_launch
-- ~~  - hector_map_tools
-- ~~  - hector_nav_msgs
-- ~~  - hector_geotiff
-- ~~  - hector_geotiff_plugins
-- ~~  - hector_marker_drawing
-- ~~  - hector_compressed_map_transport
-- ~~  - hector_imu_attitude_to_tf
-- ~~  - hector_imu_tools
-- ~~  - hector_map_server
-- ~~  - hector_trajectory_server
-- ~~  - hector_mapping
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'hector_slam'
-- ==> add_subdirectory(hector_slam/hector_slam)
-- +++ processing catkin package: 'hector_slam_launch'
-- ==> add_subdirectory(hector_slam/hector_slam_launch)
-- +++ processing catkin package: 'hector_map_tools'
-- ==> add_subdirectory(hector_slam/hector_map_tools)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'hector_nav_msgs'
-- ==> add_subdirectory(hector_slam/hector_nav_msgs)
-- Using these message generators: gencpp;genlisp;genpy
-- hector_nav_msgs: 0 messages, 5 services
-- +++ processing catkin package: 'hector_geotiff'
-- ==> add_subdirectory(hector_slam/hector_geotiff)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'hector_geotiff_plugins'
-- ==> add_subdirectory(hector_slam/hector_geotiff_plugins)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'hector_marker_drawing'
-- ==> add_subdirectory(hector_slam/hector_marker_drawing)
-- +++ processing catkin package: 'hector_compressed_map_transport'
-- ==> add_subdirectory(hector_slam/hector_compressed_map_transport)
-- Using these message generators: gencpp;genlisp;genpy
-- OpenCV ARCH:
-- OpenCV RUNTIME:
-- OpenCV STATIC: OFF
CMake Warning at /home/ros1/opencv-2.4.11/cmake/OpenCVConfig.cmake:161 (message):
  Found OpenCV Windows Pack but it has not binaries compatible with your
  configuration.

  You should manually point CMake variable OpenCV_DIR to your build of OpenCV
  library.
Call Stack (most recent call first):
  hector_slam/hector_compressed_map_transport/CMakeLists.txt:25 (find_package)


CMake Error at hector_slam/hector_compressed_map_transport/CMakeLists.txt:25 (find_package):
  Found package configuration file:

    /home/ros1/opencv-2.4.11/cmake/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.


-- Configuring incomplete, errors occurred!
See also "/home/ros1/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ros1/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] エラー 1
Invoking "make cmake_check_build_system" failed
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

これはなぜでしょうか?わかる人がいらっしゃいましたら、ご教授おねがいします。


Ryosuke Tajima

unread,
Mar 29, 2017, 9:47:00 AM3/29/17
to ROS JAPAN Users Group
パッケージをビルドするのに必要なもの(この場合OpenCV)が足りていないためです。
そういうときは、

$ cd ~/catkin_ws
$ rosdep install --from-paths src --ignore-path -y

とすると、依存しているパッケージが自動でインストールされます。

ただ単にhector_slamを使いたいだけなら、

$ apt-get install ros-indigo-hector-slam

などとしてバイナリパッケージを使ったほうが良いでしょう。

2017年2月24日(金) 11:49 NAOKI K <nok.0...@gmail.com>:
--
このメールは Google グループのグループ「ROS JAPAN Users Group」に登録しているユーザーに送られています。
このグループから退会し、グループからのメールの配信を停止するには ros-japan-use...@googlegroups.com にメールを送信してください。
その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。
Reply all
Reply to author
Forward
0 new messages