Hello,
I need help either understanding what’s going on or at least a recommendation on somewhere else where I can be helped installing Moveit2 in my laptop (Ubuntu 22.04).
I am following the official installation tutorial, and after succesfully performing all the previous steps, when executing
~/ws_moveit2/src$ sudo apt update && rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
I get a a bunch of errors under the message:
ERROR: the following packages/stacks could not have their rosdep keys resolved
install MoveIt and all of its dependencies
gas_patxo@ideapad-l340:~/ws_moveit2/src$ sudo apt update && rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
[sudo] password for gas_patxo:
Hit:1 https://packages.microsoft.com/repos/ms-teams stable InRelease
Hit:2 http://mirror.tedra.es/ubuntu jammy InRelease
Hit:3 http://mirror.tedra.es/ubuntu jammy-updates InRelease
Hit:4 http://mirror.tedra.es/ubuntu jammy-backports InRelease
Hit:5 http://packages.ros.org/ros2/ubuntu jammy InRelease
Hit:6 http://mirror.tedra.es/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
moveit_configs_utils: Cannot locate rosdep definition for [ament_lint_common]
moveit_resources_prbt_support: Cannot locate rosdep definition for [ament_cmake]
moveit: Cannot locate rosdep definition for [ament_lint_common]
moveit_planners_chomp: Cannot locate rosdep definition for [rclcpp]
moveit_resources_fanuc_moveit_config: Cannot locate rosdep definition for [ament_cmake]
moveit_task_constructor_visualization: Cannot locate rosdep definition for [rviz2]
moveit_setup_srdf_plugins: Cannot locate rosdep definition for [pluginlib]
rviz_marker_tools: Cannot locate rosdep definition for [visualization_msgs]
moveit_planners_ompl: Cannot locate rosdep definition for [pluginlib]
moveit_resources_prbt_moveit_config: Cannot locate rosdep definition for [ament_cmake]
moveit_resources_pr2_description: Cannot locate rosdep definition for [ament_cmake]
moveit_resources_panda_moveit_config: Cannot locate rosdep definition for [ament_cmake]
moveit_visual_tools: Cannot locate rosdep definition for [visualization_msgs]
moveit_common: Cannot locate rosdep definition for [backward_ros]
controller_manager: Cannot locate rosdep definition for [ros2run]
ros2_control: Cannot locate rosdep definition for [ament_cmake]
moveit_ros_perception: Cannot locate rosdep definition for [tf2_ros]
moveit_ros_warehouse: Cannot locate rosdep definition for [tf2_ros]
moveit_setup_assistant: Cannot locate rosdep definition for [rclcpp]
pilz_industrial_motion_planner: Cannot locate rosdep definition for [tf2_ros]
moveit_ros_planning_interface: Cannot locate rosdep definition for [tf2_ros]
moveit_ros_visualization: Cannot locate rosdep definition for [tf2_eigen]
hardware_interface: Cannot locate rosdep definition for [tinyxml2_vendor]
transmission_interface: Cannot locate rosdep definition for [pluginlib]
joint_limits: Cannot locate rosdep definition for [rclcpp_lifecycle]
moveit_runtime: Cannot locate rosdep definition for [ament_lint_common]
moveit_ros: Cannot locate rosdep definition for [ament_lint_common]
moveit_resources_fanuc_description: Cannot locate rosdep definition for [ament_cmake]
moveit_kinematics: Cannot locate rosdep definition for [moveit_msgs]
moveit_setup_app_plugins: Cannot locate rosdep definition for [rclcpp]
moveit_resources: Cannot locate rosdep definition for [ament_cmake]
pilz_industrial_motion_planner_testutils: Cannot locate rosdep definition for [moveit_msgs]
moveit_resources_prbt_pg70_support: Cannot locate rosdep definition for [ament_cmake]
moveit_resources_prbt_ikfast_manipulator_plugin: Cannot locate rosdep definition for [tf2_geometry_msgs]
moveit_ros_planning: Cannot locate rosdep definition for [tf2_ros]
moveit_core: Cannot locate rosdep definition for [ruckig]
moveit_task_constructor_core: Cannot locate rosdep definition for [visualization_msgs]
chomp_motion_planner: Cannot locate rosdep definition for [trajectory_msgs]
rosparam_shortcuts: Cannot locate rosdep definition for [tf2_eigen]
ros2_control_test_assets: Cannot locate rosdep definition for [ament_cmake]
ros2controlcli: Cannot locate rosdep definition for [ros2param]
moveit_simple_controller_manager: Cannot locate rosdep definition for [rclcpp_action]
moveit_task_constructor_capabilities: Cannot locate rosdep definition for [std_msgs]
moveit_task_constructor_demo: Cannot locate rosdep definition for [ament_cmake]
moveit_setup_framework: Cannot locate rosdep definition for [urdf]
moveit_resources_panda_description: Cannot locate rosdep definition for [ament_cmake]
moveit_ros_robot_interaction: Cannot locate rosdep definition for [interactive_markers]
moveit_servo: Cannot locate rosdep definition for [trajectory_msgs]
controller_manager_msgs: Cannot locate rosdep definition for [ament_lint_common]
moveit_ros_move_group: Cannot locate rosdep definition for [std_srvs]
moveit_ros_benchmarks: Cannot locate rosdep definition for [pluginlib]
moveit_planners: Cannot locate rosdep definition for [ament_lint_common]
controller_interface: Cannot locate rosdep definition for [ament_cmake_gmock]
moveit_ros_control_interface: Cannot locate rosdep definition for [trajectory_msgs]
rviz_visual_tools: Cannot locate rosdep definition for [trajectory_msgs]
moveit_setup_controllers: Cannot locate rosdep definition for [rclcpp]
moveit_task_constructor_msgs: Cannot locate rosdep definition for [visualization_msgs]
moveit_ros_occupancy_map_monitor: Cannot locate rosdep definition for [geometric_shapes]
moveit_setup_core_plugins: Cannot locate rosdep definition for [urdf]
moveit_chomp_optimizer_adapter: Cannot locate rosdep definition for [pluginlib]
moveit_plugins: Cannot locate rosdep definition for [ament_lint_common]
moveit2_tutorials: Cannot locate rosdep definition for [tf2_ros]
moveit_hybrid_planning: Cannot locate rosdep definition for [trajectory_msgs]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully
Because in the end it said #All required rosdeps installed successfully
I decided to try and proceed with the next step, which is building the package, but many packages failed due to a CMake Error
. All packages that failed have the same message.
Build workspace errors
gas_patxo@ideapad-l340:~/ws_moveit2$ colcon build --mixin release --parallel-workers 4 --continue-on-error
Starting >>> moveit_common
Starting >>> moveit_resources_panda_description
Starting >>> moveit_configs_utils
Starting >>> moveit_resources_fanuc_description
--- stderr: moveit_common
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< moveit_common [0.21s, exited with code 1]
Starting >>> controller_manager_msgs
--- stderr: moveit_resources_panda_description
CMake Error at CMakeLists.txt:3 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< moveit_resources_panda_description [0.24s, exited with code 1]
Starting >>> ros2_control_test_assets
--- stderr: moveit_resources_fanuc_description
CMake Error at CMakeLists.txt:3 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< moveit_resources_fanuc_description [0.44s, exited with code 1]
Starting >>> moveit_task_constructor_msgs
--- stderr: controller_manager_msgs
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< controller_manager_msgs [0.26s, exited with code 1]
Starting >>> rviz_marker_tools
[0.848s] ERROR:colcon.colcon_cmake.task.cmake.build:Failed to find the following files:
- /home/gas_patxo/ws_moveit2/install/hardware_interface/share/hardware_interface/package.sh
Check that the following packages have been built:
- hardware_interface
--- stderr: ros2_control_test_assets
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< ros2_control_test_assets [0.26s, exited with code 1]
Starting >>> controller_interface
Failed <<< controller_interface [0.00s, exited with code 1]
Starting >>> moveit_resources_pr2_description
--- stderr: moveit_task_constructor_msgs
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< moveit_task_constructor_msgs [0.27s, exited with code 1]
Starting >>> moveit_resources_prbt_support
--- stderr: rviz_marker_tools
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< rviz_marker_tools [0.27s, exited with code 1]
Starting >>> joint_limits
Finished <<< moveit_configs_utils [0.74s]
Starting >>> rviz_visual_tools
--- stderr: moveit_resources_pr2_description
CMake Error at CMakeLists.txt:3 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< moveit_resources_pr2_description [0.26s, exited with code 1]
[1.125s] ERROR:colcon.colcon_cmake.task.cmake.build:Failed to find the following files:
- /home/gas_patxo/ws_moveit2/install/hardware_interface/share/hardware_interface/package.sh
Check that the following packages have been built:
- hardware_interface
Starting >>> transmission_interface
Failed <<< transmission_interface [0.00s, exited with code 1]
Starting >>> rosparam_shortcuts
--- stderr: moveit_resources_prbt_support
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< moveit_resources_prbt_support [0.27s, exited with code 1]
--- stderr: rviz_visual_tools
CMake Error at CMakeLists.txt:16 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< rviz_visual_tools [0.27s, exited with code 1]
--- stderr: joint_limits
CMake Error at CMakeLists.txt:13 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< joint_limits [0.28s, exited with code 1]
--- stderr: rosparam_shortcuts
CMake Error at CMakeLists.txt:7 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< rosparam_shortcuts [0.26s, exited with code 1]
Summary: 1 package finished [1.32s]
14 packages failed: controller_interface controller_manager_msgs joint_limits moveit_common moveit_resources_fanuc_description moveit_resources_panda_description moveit_resources_pr2_description moveit_resources_prbt_support moveit_task_constructor_msgs ros2_control_test_assets rosparam_shortcuts rviz_marker_tools rviz_visual_tools transmission_interface
12 packages had stderr output: controller_manager_msgs joint_limits moveit_common moveit_resources_fanuc_description moveit_resources_panda_description moveit_resources_pr2_description moveit_resources_prbt_support moveit_task_constructor_msgs ros2_control_test_assets rosparam_shortcuts rviz_marker_tools rviz_visual_tools
48 packages not processed