小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
Ubuntu电脑端编译工作空间
-
sudo apt install python3-colcon-ros这个命令应该是在工作空间的根目录下执行的,但是我是直接在pc端执行了,执行结果也没有错,也可以安装成功,但工作空间的根目录下执行colcon build命令时就出现了以下错误。在工作空间的根目录下重新执行sudo apt install python3-colcon-ros命令(执行该命令没有出错),然后colcon build命令时也还是出现以下的错误:
-- Found ament_cmake: 1.3.5 (/opt/ros/humble/share/ament_cmake/cmake)
CMake Error at CMakeLists.txt:20 (find_package):
By not providing "Findnav2_bringup.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"nav2_bringup", but CMake did not find one.Could not find a package configuration file provided by "nav2_bringup" with
any of the following names:nav2_bringupConfig.cmake nav2_bringup-config.cmake
Add the installation prefix of "nav2_bringup" to CMAKE_PREFIX_PATH or set
"nav2_bringup_DIR" to a directory containing one of the above files. If
"nav2_bringup" provides a separate development package or SDK, be sure it
has been installed.-- Configuring incomplete, errors occurred!
See also "/home/ldf/dev_ws/build/originbot_navigation/CMakeFiles/CMakeOutput.log".
Failed <<< originbot_navigation [0.29s, exited with code 1] -
@1058704445 这个错误是没安装nav2_bringup造成的
-
@小鱼 直接apt install nav2_bringup吗?还是怎么安装?
-
- sudo apt-get install ros-你的ros版本-nav2-bringup,
比如 sudo apt-get install ros-humble-nav2-bringup - 从源码安装,可以参考 http://d2lros2foxy.fishros.com/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch#/humble/chapt11/get_started/1.Nav2导航框架介绍
- sudo apt-get install ros-你的ros版本-nav2-bringup,
-
@杜守钰 在 Ubuntu电脑端编译工作空间 中说:
- sudo apt-get install ros-你的ros版本-nav2-bringup,
比如 sudo apt-get install ros-humble-nav2-bringup - 从源码安装,可以参考 http://d2lros2foxy.fishros.com/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch#/humble/chapt11/get_started/1.Nav2导航框架介绍
已解决,谢谢
- sudo apt-get install ros-你的ros版本-nav2-bringup,
-