请输入[]内的数字以选择:1
--2023-12-11 22:45:06-- http://fishros.com/install/install1s/tools/tool_install_ros.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:19468 (19K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_install_ros.py”
/tmp/fishinstall/tools/tool 100%[=========================================>] 19.01K --.-KB/s 用时 0.04s
2023-12-11 22:45:06 (464 KB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_ros.py” [19468/19468])
--2023-12-11 22:45:06-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2457 (2.4K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_config_rosenv.py”
/tmp/fishinstall/tools/tool 100%[=========================================>] 2.40K --.-KB/s 用时 0s
2023-12-11 22:45:06 (246 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_config_rosenv.py” [2457/2457])
--2023-12-11 22:45:06-- http://fishros.com/install/install1s/tools/tool_config_system_source.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:7708 (7.5K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_config_system_source.py”
/tmp/fishinstall/tools/tool 100%[=========================================>] 7.53K --.-KB/s 用时 0s
2023-12-11 22:45:07 (32.0 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_config_system_source.py” [7708/7708])
欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
Traceback (most recent call last):
File "/tmp/fishinstall/install.py", line 122, in <module>
main()
File "/tmp/fishinstall/install.py", line 114, in main
run_tool_file(tools[code]['tool'].replace(url_prefix,'').replace("/","."))
File "/tmp/fishinstall/tools/base.py", line 1298, in run_tool_file
if tool.run()==False: return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 390, in run
self.install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 377, in install_ros
if not self.support_install(): return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 279, in support_install
if (osversion.get_codename() not in ros_dist_dic.keys()) and (osversion.get_codename() not in ros2_dist_dic.keys()):
File "/tmp/fishinstall/tools/base.py", line 684, in get_codename
self.detect_os()
File "/tmp/fishinstall/tools/base.py", line 644, in detect_os
raise OsNotDetected("Could not detect OS, tried %s" % attempted)
tools.base.GetOsVersion.<locals>.OsNotDetected: Could not detect OS, tried ['zorin', 'windows', 'nixos', 'clearlinux', 'ubuntu', 'slackware', 'rocky', 'rhel', 'qnx', 'pop', 'osx', 'sailfishos', 'tizen', 'oracle', 'opensuse', 'opensuse', 'opensuse', 'opensuse', 'opensuse', 'openembedded', 'neon', 'mx', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'elementary', 'debian', 'cygwin', 'euleros', 'centos', 'manjaro', 'buildroot', 'arch', 'amazon', 'alpine', 'almalinux']
重要提示
鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
121897498 发布的最新帖子
-
Deepin V23 beta2 一键安装ROS2失败
-
Could not find a package configuration file provided by [cmake] "village_interfaces" with any of the following names: village_interfacesConfig.cmake
系统:Win11+WSL2-Ubuntu22.04
VSCode编译报错信息:
[main] 正在配置项目: zhjrROS2 [proc] 执行命令: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -S/mnt/c/Users/zhjr/zhjrProjects/zhjrROS2/src/village_wang_cpp -B/mnt/c/Users/zhjr/zhjrProjects/zhjrROS2/build -G Ninja [cmake] Not searching for unused variables given on the command line. [cmake] -- Found ament_cmake: 1.3.6 (/opt/ros/humble/share/ament_cmake/cmake) [cmake] -- Found rclcpp: 16.0.7 (/opt/ros/humble/share/rclcpp/cmake) [cmake] -- Found rosidl_generator_c: 3.1.5 (/opt/ros/humble/share/rosidl_generator_c/cmake) [cmake] -- Found rosidl_adapter: 3.1.5 (/opt/ros/humble/share/rosidl_adapter/cmake) [cmake] -- Found rosidl_generator_cpp: 3.1.5 (/opt/ros/humble/share/rosidl_generator_cpp/cmake) [cmake] -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c [cmake] -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp [cmake] -- Found rmw_implementation_cmake: 6.1.1 (/opt/ros/humble/share/rmw_implementation_cmake/cmake) [cmake] -- Found rmw_fastrtps_cpp: 6.2.5 (/opt/ros/humble/share/rmw_fastrtps_cpp/cmake) [cmake] -- Using RMW implementation 'rmw_fastrtps_cpp' as default [cmake] CMake Error at CMakeLists.txt:14 (find_package): [cmake] By not providing "Findvillage_interfaces.cmake" in CMAKE_MODULE_PATH this [cmake] project has asked CMake to find a package configuration file provided by [cmake] "village_interfaces", but CMake did not find one. [cmake] [cmake] Could not find a package configuration file provided by [cmake] "village_interfaces" with any of the following names: [cmake] [cmake] village_interfacesConfig.cmake [cmake] village_interfaces-config.cmake [cmake] [cmake] Add the installation prefix of "village_interfaces" to CMAKE_PREFIX_PATH or [cmake] set "village_interfaces_DIR" to a directory containing one of the above [cmake] files. If "village_interfaces" provides a separate development package or [cmake] SDK, be sure it has been installed. [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] See also "/mnt/c/Users/zhjr/zhjrProjects/zhjrROS2/build/CMakeFiles/CMakeOutput.log". [proc] 命令“/usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -S/mnt/c/Users/zhjr/zhjrProjects/zhjrROS2/src/village_wang_cpp -B/mnt/c/Users/zhjr/zhjrProjects/zhjrROS2/build -G Ninja”已退出,代码为 1
CMakeList.txt
cmake_minimum_required(VERSION 3.8) project(village_wang_cpp) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() # find dependencies find_package(ament_cmake REQUIRED) find_package(rclcpp REQUIRED) find_package(std_msgs REQUIRED) find_package(village_interfaces REQUIRED) if(BUILD_TESTING) find_package(ament_lint_auto REQUIRED) # the following line skips the linter which checks for copyrights # comment the line when a copyright and license is added to all source files set(ament_cmake_copyright_FOUND TRUE) # the following line skips cpplint (only works in a git repo) # comment the line when this package is in a git repo and when # a copyright and license is added to all source files set(ament_cmake_cpplint_FOUND TRUE) ament_lint_auto_find_test_dependencies() endif() ament_package() add_executable(wang2 src/wang2.cpp) ament_target_dependencies(wang2 rclcpp std_msgs village_interfaces) install(TARGETS wang2 DESTINATION lib/${PROJECT_NAME}) install(DIRECTORY launch DESTINATION share/${PROJECT_NAME})
package.xml
<?xml version="1.0"?> <?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> <package format="3"> <name>village_wang_cpp</name> <version>0.0.0</version> <description>TODO: Package description</description> <maintainer email="*********@qq.com">zhjr</maintainer> <license>Apache-2.0</license> <buildtool_depend>ament_cmake</buildtool_depend> <depend>rclcpp</depend> <depend>std_msgs</depend> <depend>village_interfaces</depend> <test_depend>ament_lint_auto</test_depend> <test_depend>ament_lint_common</test_depend> <export> <build_type>ament_cmake</build_type> </export> </package>