Closed DigitalGabriele closed 6 months ago
Hi @DigitalGabriele
PlanSys2 still uses BehaviorTreeCPP 3.x . Remove the version 4.x that you installed. Use apt to install the correct version of behavior tree. As far as I remember, it is sudo apt install ros-humble-behaviortree-cpp-v3
. It also could be fixed using rosdep with your workspace.
Francisco.
Hi @fmrico,
It says its already installed when I ran sudo apt install ros-humble-behaviortree-cpp-v3
but it doesnt work.
ros-humble-behaviortree-cpp-v3 is already the newest version (3.8.6-1jammy.20240126.102626).
ros-humble-behaviortree-cpp-v3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Did you sourced the underlay before building?
Is the package in the list when you execute `ros2 pkg list|grep behavior"?
Try this:
git clone -b rolling https://github.com/PlanSys2/ros2_planning_system.git
git clone -b rolling https://github.com/PlanSys2/ros2_planning_system_examples
And the package you are trying to install uses BT.CPP 4.1 or newer. That is not compatible with PlanSys2 which uses 3.8. It shouldn't be hard to port though.
@DigitalGabriele Did these answers help you? Can we close the issue?
Hi,
I have Ubuntu 22 with ROS2 Humble. I followed the tutorial on how to install PlanSys2:
It failed on the colcon build with the following output:
I cloned the humble-devel branch from the following link: https://github.com/BehaviorTree/BehaviorTree.ROS2
I then removed build, install and log folders and started a fresh build of everything and I am still getting the above error.
Has anyone else stumbled upon this?
EDIT: I found the file "behaviortree_cpp_v3Config.cmake" hiding in /opt/ros/humble/share and added that path to the CMAKE_PREFIX_PATH. I reran colcon and now I am getting a different error for the behaviour tree:
I cannot find any of of those cmake files on my computer.