0
点赞
收藏
分享

微信扫一扫

ROS2 Error: Could not find a package configuration file provided by “turtlebot3_msgs“

前端王祖蓝 2022-03-30 阅读 151


官网上安装方法是这样的,不知道是否是python版本原因,最新版本没有安装成功,

​​Installing ROS 2 on Windows — ROS 2 Documentation: Galactic documentation​​

所以我试了一下微软的办法,Windows上安装ROS2,如下,

​​ROS 2 Binary Installation - ROS on Windows​​

安装完后按下面的办法测试运行,

​​Navigation 2 on Windows using Turtlebot 3 - ROS on Windows​​

 指令如下,

mkdir D:\ros2prj\nav2_ws\src
pushd D:\ros2prj\nav2_ws

curl -o nav2.repos https://raw.githubusercontent.com/ms-iot/ROSOnWindows/master/docs/ros2/navigation2_foxy.repos
vcs import src < nav2.repos

colcon build

报错,

D:\ros2prj\nav2_ws>colcon build
[0.729s] root DEBUG Using proactor: IocpProactor
Starting >>> dynamixel_sdk
Starting >>> turtlebot3_description
Starting >>> dynamixel_sdk_custom_interfaces
Starting >>> turtlebot3_cartographer
Starting >>> turtlebot3_example
Starting >>> turtlebot3_fake_node
Starting >>> turtlebot3_navigation2
Starting >>> turtlebot3_teleop
Finished <<< turtlebot3_teleop [2.27s]
Finished <<< turtlebot3_example [2.44s]
Finished <<< turtlebot3_cartographer [10.4s]
Finished <<< turtlebot3_navigation2 [10.5s]
Finished <<< turtlebot3_description [11.1s]
Starting >>> turtlebot3_gazebo
--- stderr: turtlebot3_fake_node
CMake Error at CMakeLists.txt:25 (find_package):
By not providing "Findturtlebot3_msgs.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"turtlebot3_msgs", but CMake did not find one.

Could not find a package configuration file provided by "turtlebot3_msgs"
with any of the following names:

turtlebot3_msgsConfig.cmake
turtlebot3_msgs-config.cmake

Add the installation prefix of "turtlebot3_msgs" to CMAKE_PREFIX_PATH or
set "turtlebot3_msgs_DIR" to a directory containing one of the above files.
If "turtlebot3_msgs" provides a separate development package or SDK, be
sure it has been installed.


---
Failed <<< turtlebot3_fake_node [11.5s, exited with code 1]
Aborted <<< dynamixel_sdk [11.8s]
Aborted <<< turtlebot3_gazebo [13.3s]
Aborted <<< dynamixel_sdk_custom_interfaces [24.9s]

Summary: 5 packages finished [25.2s]
1 package failed: turtlebot3_fake_node
3 packages aborted: dynamixel_sdk dynamixel_sdk_custom_interfaces turtlebot3_gazebo
2 packages had stderr output: turtlebot3_fake_node turtlebot3_gazebo
5 packages not processed

解决办法,

D:\ros2prj\nav2_ws\src>git clone -b galactic-devel https://github.com/ROBOTIS-

D:\ros2prj\nav2_ws\src>cd ..

D:\ros2prj\nav2_ws>colcon build

本文结束


举报

相关推荐

ROS2 CMakeLists.txt 和 package.xml

0 条评论