小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
dashing版安装navigation2报错rosdepc还有colcon build
-
wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ rosdepc install -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
欢迎使用国内版rosdep之rosdepc,我是作者小鱼!
欢迎关注公众号《鱼香ROS》加入交流群
小鱼rosdepc正式为您服务
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
nav2_behavior_tree: Cannot locate rosdep definition for [behaviortree_cpp_v3]
nav2_bringup: Cannot locate rosdep definition for [slam_toolbox]
smac_planner: Cannot locate rosdep definition for [ompl]
nav2_bt_navigator: Cannot locate rosdep definition for [behaviortree_cpp_v3]
nav2_util: Cannot locate rosdep definition for [launch_testing_ament_cmake]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully如果在使用过程中遇到任何问题,欢迎通过fishros.org.cn反馈,最后加入QQ交流群 686914208(入群口令:一键安装)
wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ colcon build --packages-up-to navigation2
Starting >>> nav2_common
Starting >>> nav_2d_msgs
Finished <<< nav2_common [0.50s]
Starting >>> nav2_msgs
Starting >>> nav2_voxel_grid
Finished <<< nav_2d_msgs [10.3s]
Starting >>> dwb_msgs
Finished <<< nav2_voxel_grid [13.1s]
Finished <<< dwb_msgs [18.9s]
Finished <<< nav2_msgs [36.6s]
Starting >>> nav2_util
--- stderr: nav2_util
CMake Error at CMakeLists.txt:47 (find_package):
By not providing "Findlaunch_testing_ament_cmake.cmake" in
CMAKE_MODULE_PATH this project has asked CMake to find a package
configuration file provided by "launch_testing_ament_cmake", but CMake did
not find one.Could not find a package configuration file provided by
"launch_testing_ament_cmake" with any of the following names:launch_testing_ament_cmakeConfig.cmake launch_testing_ament_cmake-config.cmake
Add the installation prefix of "launch_testing_ament_cmake" to
CMAKE_PREFIX_PATH or set "launch_testing_ament_cmake_DIR" to a directory
containing one of the above files. If "launch_testing_ament_cmake"
provides a separate development package or SDK, be sure it has been
installed.
Failed <<< nav2_util [3.01s, exited with code 1]
Summary: 5 packages finished [40.4s]
1 package failed: nav2_util
1 package had stderr output: nav2_util
22 packages not processed
wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ navigation2
navigation2:未找到命令
wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ source install/setup.bash
wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ ros2 pkg list | grep navigation2
wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ navigation2
navigation2:未找到命令 -
@3508827352 手动安装下 sudo apt install ros-你的ROS版本代号-launch-testing-ament-cmake
-
@3508827352 另外注意格式
@小鱼 在 提问前必看!一定要看!必须看一下! 中说:
问题一定要描述清楚,终端打印一定复制粘贴,方便回答者检索和引用(你可以在linux系统上打开浏览器进社区)
基本的Markdown语法一定要学习下,有的小伙伴图片代码一团糟
提问时一定要提供尽可能多的信息(系统版本,ROS版本,前后操作,终端日志),包括你的目的,比如你其实想装装某个库遇到问题,不要只说这个问题,因为可能有更好的替代方案 -
@3508827352 你好,我也遇到了和你一样的问题,colcon build失败,请问您解决了吗