안녕하세요. 저는 충북대학교 지능로봇랩실 석사 1년차 임현수입니다.
표윤석박사님의 ROS 마라톤 특강을 듣고 이 지식을 기반으로 ROS로 구현된 오픈소스 g2o_tutorial 예제를 활용하여
CMakeList.txt에서 외부 라이브러리는 어떻게 가져다 쓰는지, 다른 사람들이 구현해논 패키지는 어떻게 쓰는지, opencv는 어떻게 활용하는지
그리고 각 코드의 의미를 마스터와 노드 그리고 메시지의 그림과 연관지어 최대한 이해하려고합니다.
그리하여 g2o_tutorial 예제를 실행하고자하는데 빌드과정에서 에러가 떳습니다. 나름 구글링하여 노력해봤지만 잘 모르겠어서 도움을 요청합니다!!
CMakeLists.txt와 manifest.xml 파일을 각각 구글링을 통해 수정해본 파일을 첨부해 놓았습니다.
https://github.com/rosskidson/g2o_tutorial (g2o_tutorial 오픈소스입니다.)
a@a:~/catkin_ws/src/g2o_tutorial/g2o_viewer$ make
수정 전후 에러내용은 다음과 같았습니다.
CMake Error at g2o_viewer/CMakeLists.txt:2 (find_package):
By not providing "FindEigen.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Eigen", but
CMake did not find one.어
Could not find a package configuration file provided by "Eigen" with any of
the following names:
EigenConfig.cmake
eigen-config.cmake
Add the installation prefix of "Eigen" to CMAKE_PREFIX_PATH or set
"Eigen_DIR" to a directory containing one of the above files. If "Eigen"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/a/catkin_ws/src/g2o_tutorial/g2o_viewer/build/CMakeFiles/CMakeOutput.log".
See also "/home/a/catkin_ws/src/g2o_tutorial/g2o_viewer/build/CMakeFiles/CMakeError.log".
make: *** [all] Error 1
a@a:~/catkin_ws/src/g2o_tutorial/g2o_viewer$
이 문제를 해결하기위한 조언 부탁드리겠습니다!!