하루의 쉼터

[Error] By not providing "Findbehaviortree_cpp_v3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "behaviortree_cpp_v3", but CMake did not find one. 본문

프로그래밍/ROS2

[Error] By not providing "Findbehaviortree_cpp_v3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "behaviortree_cpp_v3", but CMake did not find one.

Changun An 2023. 2. 24. 10:16
반응형

nav2_behavior_tree 포팅 중 아래와 같은 메시지가 발생할 수 있다.

By not providing "Findbehaviortree_cpp_v3.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "behaviortree_cpp_v3", but CMake did not find one.

읽어 보면 cmake에서 behaviortree_cpp_v3를 못찾고 있다는 것인데.

github나 apt-get을 통하여 설치해주면 된다.

github 방식은 아래와 같다.

https://github.com/BehaviorTree/BehaviorTree.CPP

 

GitHub - BehaviorTree/BehaviorTree.CPP: Behavior Trees Library in C++. Batteries included.

Behavior Trees Library in C++. Batteries included. - GitHub - BehaviorTree/BehaviorTree.CPP: Behavior Trees Library in C++. Batteries included.

github.com

* 컴파일은 README.md를 읽으며 따라해보면된다.

아래는 선택이지만 설치하길 권장된다.

 sudo apt-get install libzmq3-dev libboost-coroutine-dev libncurses5-dev libncursesw5-dev

github에서 다운받은 폴더에 들어가서 컴파일을 완료한다.

cd BehaviorTree.CPP
mkdir build; cd build
cmake ..
make
sudo make install

 

apt-get은 아래와 같다.

 sudo apt-get install ros-<ros_distro>-behaviortree-cpp-v3

 

반응형
Comments