小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
ros2 moveit2 编译错误
-
安装依赖后
编译文件时运行:
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> moveit_common
Starting >>> moveit_resources_panda_description
Starting >>> moveit_configs_utils
Starting >>> moveit_resources_fanuc_description
Starting >>> moveit_task_constructor_msgs
Starting >>> moveit_resources_pr2_description
Starting >>> moveit_resources_prbt_support
Starting >>> rviz_visual_tools
Finished <<< moveit_common [0.96s]
Starting >>> rviz_marker_tools
Finished <<< moveit_resources_panda_description [0.99s]
Starting >>> moveit_resources_panda_moveit_config
Finished <<< moveit_resources_prbt_support [1.44s]
Starting >>> moveit_resources_benchmarking
Finished <<< moveit_configs_utils [1.53s]
Finished <<< moveit_resources_fanuc_description [1.54s]
Starting >>> rosparam_shortcuts
Starting >>> moveit_resources_fanuc_moveit_config
Finished <<< moveit_resources_pr2_description [1.57s]
Starting >>> dual_arm_panda_moveit_config
Finished <<< moveit_resources_panda_moveit_config [1.65s]
Starting >>> moveit_core
Finished <<< moveit_resources_benchmarking [1.23s]
Finished <<< moveit_resources_fanuc_moveit_config [1.17s]
Finished <<< dual_arm_panda_moveit_config [1.14s]
Starting >>> moveit_resources
--- stderr: moveit_core
CMake Warning (dev) at /usr/local/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed tofind_package_handle_standard_args
(libdw) does
not match the name of the calling package (backward_ros). This can lead to
problems in calling code that expectsfind_package
result variables
(e.g.,_FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/opt/ros/foxy/share/backward_ros/cmake/BackwardConfig.cmake:55 (find_package_handle_standard_args)
/opt/ros/foxy/share/backward_ros/cmake/backward_rosConfig.cmake:41 (include)
/home/z/moveit2/install/moveit_common/share/moveit_common/cmake/moveit_package.cmake:36 (find_package)
CMakeLists.txt:6 (moveit_package)
This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at /usr/local/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed tofind_package_handle_standard_args
(libbfd)
does not match the name of the calling package (backward_ros). This can
lead to problems in calling code that expectsfind_package
result
variables (e.g.,_FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/opt/ros/foxy/share/backward_ros/cmake/BackwardConfig.cmake:66 (find_package_handle_standard_args)
/opt/ros/foxy/share/backward_ros/cmake/backward_rosConfig.cmake:41 (include)
/home/z/moveit2/install/moveit_common/share/moveit_common/cmake/moveit_package.cmake:36 (find_package)
CMakeLists.txt:6 (moveit_package)
This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at /usr/local/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed tofind_package_handle_standard_args
(Backward)
does not match the name of the calling package (backward_ros). This can
lead to problems in calling code that expectsfind_package
result
variables (e.g.,_FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/opt/ros/foxy/share/backward_ros/cmake/BackwardConfig.cmake:128 (find_package_handle_standard_args)
/opt/ros/foxy/share/backward_ros/cmake/backward_rosConfig.cmake:41 (include)
/home/z/moveit2/install/moveit_common/share/moveit_common/cmake/moveit_package.cmake:36 (find_package)
CMakeLists.txt:6 (moveit_package)
This warning is for project developers. Use -Wno-dev to suppress it.CMake Error at CMakeLists.txt:25 (find_package):
By not providing "Findgenerate_parameter_library.cmake" in
CMAKE_MODULE_PATH this project has asked CMake to find a package
configuration file provided by "generate_parameter_library", but CMake did
not find one.Could not find a package configuration file provided by
"generate_parameter_library" with any of the following names:generate_parameter_libraryConfig.cmake generate_parameter_library-config.cmake
Add the installation prefix of "generate_parameter_library" to
CMAKE_PREFIX_PATH or set "generate_parameter_library_DIR" to a directory
containing one of the above files. If "generate_parameter_library"
provides a separate development package or SDK, be sure it has been
installed.
Failed <<< moveit_core [0.76s, exited with code 1]
Aborted <<< moveit_resources [0.69s]
Aborted <<< rosparam_shortcuts [2.37s]
Aborted <<< rviz_visual_tools [4.70s]
Aborted <<< moveit_task_constructor_msgs [4.93s]
Aborted <<< rviz_marker_tools [7.50s]Summary: 10 packages finished [8.85s]
1 package failed: moveit_core
5 packages aborted: moveit_resources moveit_task_constructor_msgs rosparam_shortcuts rviz_marker_tools rviz_visual_tools
2 packages had stderr output: moveit_core rviz_marker_tools
41 packages not processed -
@572871692
你好,可以添加你一下吗,我也遇到了您相同的问题
vx:j1503153906 -
此回复已被删除! -
@1503153906 您好请问您解决了吗