Package ‘micro_ros_agent‘ specified with --packages-up-to was not found

参考:
https://blog.csdn.net/admin11111111/article/details/130881208

1.步骤复制下面的代码到:ros2.repos

新建一个名为 “ros2.repos”,复制下面的内容到里面

在这里插入图片描述

repositories:
  ament/ament_cmake:
    type: git
    url: https://github.com/ament/ament_cmake.git
    version: foxy
  ament/ament_index:
    type: git
    url: https://github.com/ament/ament_index.git
    version: foxy
  ament/ament_lint:
    type: git
    url: https://github.com/ament/ament_lint.git
    version: foxy
  ament/ament_package:
    type: git
    url: https://github.com/ament/ament_package.git
    version: foxy
  ament/google_benchmark_vendor:
    type: git
    url: https://github.com/ament/google_benchmark_vendor.git
    version: foxy
  ament/googletest:
    type: git
    url: https://github.com/ament/googletest.git
    version: foxy
  ament/uncrustify_vendor:
    type: git
    url: https://github.com/ament/uncrustify_vendor.git
    version: foxy
  eclipse-cyclonedds/cyclonedds:
    type: git
    url: https://github.com/eclipse-cyclonedds/cyclonedds.git
    version: releases/0.7.x
  eProsima/Fast-CDR:
    type: git
    url: https://github.com/eProsima/Fast-CDR.git
    version: v1.0.13
  eProsima/Fast-DDS:
    type: git
    url: https://github.com/eProsima/Fast-DDS.git
    version: 2.1.x
  eProsima/foonathan_memory_vendor:
    type: git
    url: https://github.com/eProsima/foonathan_memory_vendor.git
    version: master
  osrf/osrf_pycommon:
    type: git
    url: https://github.com/osrf/osrf_pycommon.git
    version: foxy
  osrf/osrf_testing_tools_cpp:
    type: git
    url: https://github.com/osrf/osrf_testing_tools_cpp.git
    version: foxy
  ros-perception/laser_geometry:
    type: git
    url: https://github.com/ros-perception/laser_geometry.git
    version: foxy
  ros-planning/navigation_msgs:
    type: git
    url: https://github.com/ros-planning/navigation_msgs.git
    version: foxy
  ros-tooling/libstatistics_collector:
    type: git
    url: https://github.com/ros-tooling/libstatistics_collector.git
    version: foxy-devel
  ros-visualization/interactive_markers:
    type: git
    url: https://github.com/ros-visualization/interactive_markers.git
    version: foxy
  ros-visualization/python_qt_binding:
    type: git
    url: https://github.com/ros-visualization/python_qt_binding.git
    version: crystal-devel
  ros-visualization/qt_gui_core:
    type: git
    url: https://github.com/ros-visualization/qt_gui_core.git
    version: foxy-devel
  ros-visualization/rqt:
    type: git
    url: https://github.com/ros-visualization/rqt.git
    version: crystal-devel
  ros-visualization/rqt_action:
    type: git
    url: https://github.com/ros-visualization/rqt_action.git
    version: crystal-devel
  ros-visualization/rqt_console:
    type: git
    url: https://github.com/ros-visualization/rqt_console.git
    version: foxy-devel
  ros-visualization/rqt_graph:
    type: git
    url: https://github.com/ros-visualization/rqt_graph.git
    version: foxy-devel
  ros-visualization/rqt_msg:
    type: git
    url: https://github.com/ros-visualization/rqt_msg.git
    version: foxy-devel
  ros-visualization/rqt_plot:
    type: git
    url: https://github.com/ros-visualization/rqt_plot.git
    version: foxy-devel
  ros-visualization/rqt_publisher:
    type: git
    url: https://github.com/ros-visualization/rqt_publisher.git
    version: foxy-devel
  ros-visualization/rqt_py_console:
    type: git
    url: https://github.com/ros-visualization/rqt_py_console.git
    version: crystal-devel
  ros-visualization/rqt_reconfigure:
    type: git
    url: https://github.com/ros-visualization/rqt_reconfigure.git
    version: dashing
  ros-visualization/rqt_service_caller:
    type: git
    url: https://github.com/ros-visualization/rqt_service_caller.git
    version: crystal-devel
  ros-visualization/rqt_shell:
    type: git
    url: https://github.com/ros-visualization/rqt_shell.git
    version: crystal-devel
  ros-visualization/rqt_srv:
    type: git
    url: https://github.com/ros-visualization/rqt_srv.git
    version: crystal-devel
  ros-visualization/rqt_top:
    type: git
    url: https://github.com/ros-visualization/rqt_top.git
    version: crystal-devel
  ros-visualization/rqt_topic:
    type: git
    url: https://github.com/ros-visualization/rqt_topic.git
    version: foxy-devel
  ros-visualization/tango_icons_vendor:
    type: git
    url: https://github.com/ros-visualization/tango_icons_vendor.git
    version: foxy
  ros/class_loader:
    type: git
    url: https://github.com/ros/class_loader.git
    version: foxy
  ros/pluginlib:
    type: git
    url: https://github.com/ros/pluginlib.git
    version: foxy
  ros/kdl_parser:
    type: git
    url: https://github.com/ros/kdl_parser.git
    version: foxy
  ros/resource_retriever:
    type: git
    url: https://github.com/ros/resource_retriever.git
    version: foxy
  ros/robot_state_publisher:
    type: git
    url: https://github.com/ros/robot_state_publisher.git
    version: foxy
  ros/ros_environment:
    type: git
    url: https://github.com/ros/ros_environment.git
    version: foxy
  ros/ros_tutorials:
    type: git
    url: https://github.com/ros/ros_tutorials.git
    version: foxy-devel
  ros/urdfdom_headers:
    type: git
    url: https://github.com/ros/urdfdom_headers.git
    version: foxy
  ros/urdfdom:
    type: git
    url: https://github.com/ros/urdfdom.git
    version: foxy
  ros2/ament_cmake_ros:
    type: git
    url: https://github.com/ros2/ament_cmake_ros.git
    version: foxy
  ros2/common_interfaces:
    type: git
    url: https://github.com/ros2/common_interfaces.git
    version: foxy
  ros2/console_bridge_vendor:
    type: git
    url: https://github.com/ros2/console_bridge_vendor.git
    version: foxy
  ros2/demos:
    type: git
    url: https://github.com/ros2/demos.git
    version: foxy
  ros2/eigen3_cmake_module:
    type: git
    url: https://github.com/ros2/eigen3_cmake_module.git
    version: foxy
  ros2/example_interfaces:
    type: git
    url: https://github.com/ros2/example_interfaces.git
    version: foxy
  ros2/examples:
    type: git
    url: https://github.com/ros2/examples.git
    version: foxy
  ros2/geometry2:
    type: git
    url: https://github.com/ros2/geometry2.git
    version: foxy
  ros2/launch:
    type: git
    url: https://github.com/ros2/launch.git
    version: foxy
  ros2/launch_ros:
    type: git
    url: https://github.com/ros2/launch_ros.git
    version: foxy
  ros2/libyaml_vendor:
    type: git
    url: https://github.com/ros2/libyaml_vendor.git
    version: foxy
  ros2/message_filters:
    type: git
    url: https://github.com/ros2/message_filters.git
    version: foxy
  ros2/mimick_vendor:
    type: git
    url: https://github.com/ros2/mimick_vendor.git
    version: foxy
  ros2/orocos_kinematics_dynamics:
    type: git
    url: https://github.com/ros2/orocos_kinematics_dynamics.git
    version: foxy
  ros2/performance_test_fixture:
    type: git
    url: https://github.com/ros2/performance_test_fixture.git
    version: rolling
  ros2/python_cmake_module:
    type: git
    url: https://github.com/ros2/python_cmake_module.git
    version: foxy
  ros2/rcl:
    type: git
    url: https://github.com/ros2/rcl.git
    version: foxy
  ros2/rcl_interfaces:
    type: git
    url: https://github.com/ros2/rcl_interfaces.git
    version: foxy
  ros2/rcl_logging:
    type: git
    url: https://github.com/ros2/rcl_logging.git
    version: foxy
  ros2/rclcpp:
    type: git
    url: https://github.com/ros2/rclcpp.git
    version: foxy
  ros2/rclpy:
    type: git
    url: https://github.com/ros2/rclpy.git
    version: foxy
  ros2/rcpputils:
    type: git
    url: https://github.com/ros2/rcpputils.git
    version: foxy
  ros2/rcutils:
    type: git
    url: https://github.com/ros2/rcutils.git
    version: foxy
  ros2/realtime_support:
    type: git
    url: https://github.com/ros2/realtime_support.git
    version: foxy
  ros2/rmw:
    type: git
    url: https://github.com/ros2/rmw.git
    version: foxy
  ros2/rmw_connext:
    type: git
    url: https://github.com/ros2/rmw_connext.git
    version: foxy
  ros2/rmw_cyclonedds:
    type: git
    url: https://github.com/ros2/rmw_cyclonedds.git
    version: foxy
  ros2/rmw_dds_common:
    type: git
    url: https://github.com/ros2/rmw_dds_common.git
    version: foxy
  ros2/rmw_fastrtps:
    type: git
    url: https://github.com/ros2/rmw_fastrtps.git
    version: foxy
  ros2/rmw_implementation:
    type: git
    url: https://github.com/ros2/rmw_implementation.git
    version: foxy
  ros2/ros1_bridge:
    type: git
    url: https://github.com/ros2/ros1_bridge.git
    version: foxy
  ros2/ros2_tracing:
    type: git
    url: https://github.com/ros2/ros2_tracing.git
    version: foxy
  ros2/ros2cli:
    type: git
    url: https://github.com/ros2/ros2cli.git
    version: foxy
  ros2/ros2cli_common_extensions:
    type: git
    url: https://github.com/ros2/ros2cli_common_extensions.git
    version: foxy
  ros2/ros_testing:
    type: git
    url: https://github.com/ros2/ros_testing.git
    version: foxy
  ros2/rosbag2:
    type: git
    url: https://github.com/ros2/rosbag2.git
    version: foxy
  ros2/rosidl:
    type: git
    url: https://github.com/ros2/rosidl.git
    version: foxy
  ros2/rosidl_dds:
    type: git
    url: https://github.com/ros2/rosidl_dds.git
    version: foxy
  ros2/rosidl_defaults:
    type: git
    url: https://github.com/ros2/rosidl_defaults.git
    version: foxy
  ros2/rosidl_python:
    type: git
    url: https://github.com/ros2/rosidl_python.git
    version: foxy
  ros2/rosidl_runtime_py:
    type: git
    url: https://github.com/ros2/rosidl_runtime_py.git
    version: foxy
  ros2/rosidl_typesupport:
    type: git
    url: https://github.com/ros2/rosidl_typesupport.git
    version: foxy
  ros2/rosidl_typesupport_connext:
    type: git
    url: https://github.com/ros2/rosidl_typesupport_connext.git
    version: foxy
  ros2/rosidl_typesupport_fastrtps:
    type: git
    url: https://github.com/ros2/rosidl_typesupport_fastrtps.git
    version: foxy
  ros2/rpyutils:
    type: git
    url: https://github.com/ros2/rpyutils.git
    version: foxy
  ros2/rviz:
    type: git
    url: https://github.com/ros2/rviz.git
    version: foxy
  ros2/spdlog_vendor:
    type: git
    url: https://github.com/ros2/spdlog_vendor.git
    version: foxy
  ros2/sros2:
    type: git
    url: https://github.com/ros2/sros2.git
    version: foxy
  ros2/system_tests:
    type: git
    url: https://github.com/ros2/system_tests.git
    version: foxy
  ros2/test_interface_files:
    type: git
    url: https://github.com/ros2/test_interface_files.git
    version: foxy
  ros2/tinyxml2_vendor:
    type: git
    url: https://github.com/ros2/tinyxml2_vendor.git
    version: foxy
  ros2/tinyxml_vendor:
    type: git
    url: https://github.com/ros2/tinyxml_vendor.git
    version: foxy
  ros2/tlsf:
    type: git
    url: https://github.com/ros2/tlsf.git
    version: foxy
  ros2/unique_identifier_msgs:
    type: git
    url: https://github.com/ros2/unique_identifier_msgs.git
    version: foxy
  ros2/urdf:
    type: git
    url: https://github.com/ros2/urdf.git
    version: foxy
  ros2/yaml_cpp_vendor:
    type: git
    url: https://github.com/ros2/yaml_cpp_vendor.git
    version: foxy

2.修改 “create_ws.sh”内容

注释掉这两句

在这里插入图片描述

3.再次运行:

colcon build
source install/local_setup.bash
ros2 run micro_ros_setup create_agent_ws.sh

出现下面界面说明成功。
在这里插入图片描述

  • 9
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值