小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
humblet版本安装cartographer,colcon build时报错
-
报错信息:
CMake Error at /opt/ros/foxy/share/cartographer_ros/cmake/cartographer_ros.cmake:128 (message):
Could not find the required version of package "cartographer".
解决方案:
可能是由于没有正确安装cartographer而导致的,可以尝试重新安装cartographer,或者检查是否有漏掉的依赖包。
以上为生成回答,仅供参考~
-
重新建了一个文件夹,再一次按例程跑了一次,上面的步骤一切正常, 在colcon build的时候再一次出错。如图所示
-
报错的部分是:
CMake Error at /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:294 (message): Could not find package 'rosidl_typesupport_cpp' Call Stack (most recent call first): /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:128 (ament_package_get_dependencies) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:94 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:165 (ament_package_get_dependencies_recursive_impl) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:127 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:94 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:165 (ament_package_get_dependencies_recursive_impl) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:127 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:94 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:165 (ament_package_get_dependencies_recursive_impl) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:127 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:94 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:165 (ament_package_get_dependencies_recursive_impl) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:127 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:94 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:165 (ament_package_get_dependencies_recursive_impl) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:127 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cmake_core/cmake/internal/ament_package_tools.cmake:94 (ament_package_get_dependencies_recursive) /opt/ros/foxy/share/ament_cm --- 以上为生成回答,仅供参考~
-
更改文件夹权限后如图所示 -
以上为生成回答,仅供参考~
-
依赖都提示成功安装了
-
- 启动报错
Error: listen EADDRINUSE :::3000 at Server.setupListenHandle [as _listen2] (net.js:1313:16) at listenInCluster (net.js:1361:12) at Server.listen (net.js:1447:7) at Function.app.listen (/Users/daiyun/Desktop/node/node-express/node_modules/express/lib/application.js:618:24) at Object.<anonymous> (/Users/daiyun/Desktop/node/node-express/bin/www:7:18) at Module._compile (internal/modules/cjs/loader.js:936:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10) at Module.load (internal/modules/cjs/loader.js:790:32) at Function.Module._load (internal/modules/cjs/loader.js:703:12) at Function.Module.runMain (internal/modules/cjs/loader.js:999:10) Emitted 'error' event on Server instance at: at emitErrorNT (net.js:1340:8) at processTicksAndRejections (internal/process/task_queues.js:84:21) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::', port: 3000 }
报错信息提示端口号3000已经被占用,可以尝试更改端口号启动项目
以上为生成回答,仅供参考~
-
一键安装报错,具体如图所示
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
cartographer_rviz: Cannot locate rosdep definition for [libboost-iostreams-dev]
cartographer: Cannot locate rosdep definition for [protobuf-dev]
cartographer_ros: Cannot locate rosdep definition for [libpcl-all-dev]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully -
按一键安装的指示要求,一步一步的进行,colcon build --packages-up-to cartographer_ros 的时候,提示
error: unrecognized arguments: --packages-up-to cartographer_ros(base) vico@wp:~/fishbot_ws$ rosdepc install -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
欢迎使用国内版rosdep之rosdepc,我是作者小鱼!
欢迎关注公众号《鱼香ROS》加入交流群
小鱼rosdepc正式为您服务
#All required rosdeps installed successfully
如果在使用过程中遇到任何问题,欢迎通过fishros.org.cn反馈,最后加入QQ交流群 686914208(入群口令:一键安装)
(base) vico@wp:~/fishbot_ws$ colcon build --packages-up-to cartographer_ros
usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] {build,test} ...
colcon: error: unrecognized arguments: --packages-up-to cartographer_ros
(base) vico@wp:~/fishbot_ws$ cd src
(base) vico@wp:~/fishbot_ws/src$ ls
cartographer cartographer_ros wget-log
(base) vico@wp:~/fishbot_ws/src$ colcon build --packages-up-to cartographer_ros
usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] {build,test} ...
colcon: error: unrecognized arguments: --packages-up-to cartographer_ros -
Summary: 3 packages finished [6min 11s]
vico@wp:~/cartographer_ws$ source install/setup.bash
vico@wp:~/cartographer_ws$ ros2 pkg list | grep cartograper
vico@wp:~/cartographer_ws$ source .install/setup.bash
bash: .install/setup.bash: 没有那个文件或目录
vico@wp:~/cartographer_ws$ source ./install/setup.bash
vico@wp:~/cartographer_ws$ ros2 pkg list | grep cartograper
vico@wp:~/cartographer_ws$ ros2 pkg list | grep cartographer
cartographer_ros
cartographer_ros_msgs经过一堆反复无止境的折腾,终于完成安装了。估计安装中出现的所有波折都经历过了
-
@vico1999 兄弟我也是这个问题,你怎么解决的啊
-
@vico1999 怎么解决的老,可以分享一下吗