Moveit2 Moveit MTC moveit/planning_scene/planning_scene.hpp: No such file or directory. mtc_node.cpp Issues
I am following the MTC guide here for pick and place on U22.04 humble ros2. After editing the mtc_node.cpp file and attempt to build my workspace i receive this error.
inished <<< moveit_task_constructor_visualization [0.37s]
--- stderr: mtc_tutorial
/home/lapros/ws_moveit2/src/mtc_tutorial/src/mtc_node.cpp:2:10: fatal error: moveit/planning_scene/planning_scene.hpp: No such file or directory
2 | #include <moveit/planning_scene/planning_scene.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/mtc_node.dir/build.make:76: CMakeFiles/mtc_node.dir/src/mtc_node.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/mtc_node.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Failed <<< mtc_tutorial [0.37s, exited with code 2]
Aborted <<< moveit_task_constructor_demo [0.22s]
Aborted <<< moveit_setup_assistant [0.16s]
Summary: 51 packages finished [3.45s] 1 package failed: mtc_tutorial 2 packages aborted: moveit_setup_assistant moveit_task_constructor_demo 1 package had stderr output: mtc_tutorial 2 packages not processed
i have followed all the steps up to this point and am not missing any files, i've also ensured that i've installed the humble variant of everything wherever applicable
The .hpp files for MoveIt are only available on the Jazzy and Rolling branches -- they are still .h on Humble.
Make sure you use the humble branch of this repo if working with ROS 2 Humble!
https://github.com/moveit/moveit2_tutorials/tree/humble https://moveit.picknik.ai/humble/index.html