Imported target “dart“ includes non-existent path 笔记

news2025/1/17 0:49:54

详细问题:

关联功能包,源码编译

Failed <<< gazebo_ros2_control [11.8s, exited with code 1]

网上查了很多资料,都是比较旧版,这里注意由于ROS2系统发展很快,功能包在快速集成。

使用源码编译可能会遇到环境配置问题,如果遇到,首先到系统中直接安装对应功能包。

foxy、humble均可。

sudo apt install ros-foxy-gazebo-ros2-control

如果要直接解决这类问题,需要配置环境,较为繁琐不推荐。

--- stderr: gazebo_ros2_control                                                                                                       
CMake Error in CMakeLists.txt:
  Imported target "dart" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "dart" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "dart" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "dart" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Generate step failed.  Build files cannot be regenerated correctly.
---
Failed   <<< gazebo_ros2_control [11.8s, exited with code 1]
Aborted  <<< pmb2_robot [5.74s]                                                                                                            
Aborted  <<< tiago_robot [5.62s]                                                                                 
Aborted  <<< gripper_controllers [21.4s]                                    

Summary: 50 packages finished [38.9s]
  1 package failed: gazebo_ros2_control
  3 packages aborted: gripper_controllers pmb2_robot tiago_robot
  1 package had stderr output: gazebo_ros2_control
  3 packages not processed

chatgpt回答不知道!!!

修复重新编译:

然后就可以继续看书跑代码了。

foxy、humble均支持。

colcon build
[1.096s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
    'diff_drive_controller' is in: /opt/ros/foxy
    'ros2_controllers' is in: /opt/ros/foxy
    'pmb2_bringup' is in: /opt/ros/foxy
    'controller_manager' is in: /opt/ros/foxy
    'pmb2_controller_configuration' is in: /opt/ros/foxy
    'joint_trajectory_controller' is in: /opt/ros/foxy
    'ros2_control' is in: /opt/ros/foxy
    'pmb2_2dnav' is in: /opt/ros/foxy
    'twist_mux' is in: /opt/ros/foxy
    'hardware_interface' is in: /opt/ros/foxy
    'velocity_controllers' is in: /opt/ros/foxy
    'pal_gazebo_worlds' is in: /opt/ros/foxy
    'joint_state_controller' is in: /opt/ros/foxy
    'launch_pal' is in: /opt/ros/foxy
    'effort_controllers' is in: /opt/ros/foxy
    'pmb2_description' is in: /opt/ros/foxy
    'joint_state_broadcaster' is in: /opt/ros/foxy
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
    --allow-overriding controller_manager diff_drive_controller effort_controllers hardware_interface joint_state_broadcaster joint_state_controller joint_trajectory_controller launch_pal pal_gazebo_worlds pmb2_2dnav pmb2_bringup pmb2_controller_configuration pmb2_description ros2_control ros2_controllers twist_mux velocity_controllers

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> controller_manager_msgs
Starting >>> ros2_control_test_assets
Starting >>> launch_pal
Starting >>> twist_mux
Finished <<< ros2_control_test_assets [1.10s]                                                                                            
Starting >>> hardware_interface
Finished <<< twist_mux [1.44s]                                                                                                   
Starting >>> hey5_description
Finished <<< hey5_description [0.64s]                                                                                                     
Starting >>> tiago_description_calibration
Finished <<< hardware_interface [1.41s]                                                                                                   
Starting >>> controller_interface
Finished <<< tiago_description_calibration [0.49s]                                                 
Starting >>> pal_gazebo_worlds
Finished <<< controller_manager_msgs [3.50s]                                                                                               
Starting >>> urdf_test
Finished <<< pal_gazebo_worlds [0.90s]                                                                                             
Starting >>> pmb2_maps
Finished <<< launch_pal [3.52s]
Starting >>> br2_tracking_msgs
Finished <<< controller_interface [1.06s]
Starting >>> controller_manager
Finished <<< urdf_test [0.69s]                                                                                                       
Starting >>> pal_gripper_description
Finished <<< pmb2_maps [0.74s]                                                                         
Starting >>> pmb2_2dnav
Finished <<< pmb2_2dnav [0.51s]                                                                                     
Starting >>> br2_basics
Finished <<< pal_gripper_description [0.73s]                                                                  
Starting >>> br2_bt_bumpgo
Finished <<< controller_manager [1.96s]                                                                                                 
Starting >>> forward_command_controller
Finished <<< br2_tracking_msgs [2.07s]                                                                                                     
Starting >>> joint_state_broadcaster
Finished <<< br2_basics [1.24s]                                                                                                          
Starting >>> diff_drive_controller
Finished <<< br2_bt_bumpgo [1.27s]                                                                                   
Starting >>> imu_sensor_broadcaster
Finished <<< forward_command_controller [1.18s]                                                                                   
Starting >>> joint_trajectory_controller
Finished <<< joint_state_broadcaster [1.20s]                                                                              
Starting >>> joint_state_controller
Finished <<< diff_drive_controller [1.28s]                                                                               
Starting >>> position_controllers
Finished <<< imu_sensor_broadcaster [1.24s]                                                                                    
Starting >>> force_torque_sensor_broadcaster
Finished <<< joint_state_controller [1.00s]                                                                                       
Starting >>> pmb2_controller_configuration
Finished <<< joint_trajectory_controller [1.35s]                                                                             
Starting >>> ros2controlcli
Finished <<< position_controllers [1.53s]                                                                                        
Starting >>> pal_gripper_controller_configuration
Finished <<< force_torque_sensor_broadcaster [1.53s]                                                                                   
Starting >>> effort_controllers
Finished <<< pmb2_controller_configuration [1.28s]                                                            
Starting >>> pmb2_description                                                                                       
Finished <<< pal_gripper_controller_configuration [0.74s]                                                             
Starting >>> tiago_controller_configuration
Finished <<< pmb2_description [0.81s]                                                                                                    
Starting >>> pmb2_bringup
Finished <<< effort_controllers [1.04s]                                                             
Starting >>> velocity_controllers
Finished <<< tiago_controller_configuration [0.76s]                                                                                 
Starting >>> tiago_description
Finished <<< pmb2_bringup [0.69s]                                                                                                     
Starting >>> tiago_bringup
Finished <<< velocity_controllers [1.01s]                                                                                                 
Starting >>> br2_bt_patrolling
Finished <<< tiago_description [0.98s]                                                                                            
Starting >>> br2_fsm_bumpgo_cpp
Finished <<< ros2controlcli [3.42s]                                                                                             
Starting >>> br2_fsm_bumpgo_py                                                                                                      
Finished <<< tiago_bringup [0.98s]                                                                                                      
Starting >>> tiago_gazebo
Finished <<< br2_fsm_bumpgo_cpp [1.30s]                                                                                                    
Starting >>> br2_navigation
Finished <<< br2_bt_patrolling [1.73s]                                                                                              
Starting >>> br2_tf2_detector                                                                                        
Finished <<< tiago_gazebo [1.24s]
Starting >>> br2_tiago                                                                                                       
Finished <<< br2_navigation [0.69s]                                                                                                     
Starting >>> br2_vff_avoidance
Finished <<< br2_tiago [0.51s]                                                                                                     
Starting >>> groot
Finished <<< br2_tf2_detector [1.01s]                                                                                                     
Starting >>> br2_tracking
Finished <<< br2_vff_avoidance [0.90s]                                                                                            
Starting >>> pmb2_navigation
Finished <<< pmb2_navigation [0.64s]                                                                                         
Starting >>> transmission_interface
Finished <<< br2_tracking [1.16s]                                                                                          
Starting >>> gripper_controllers
Finished <<< br2_fsm_bumpgo_py [3.56s]
Starting >>> ros2_control                                                                                                  
Finished <<< groot [2.15s]                                                                                                              
Starting >>> ros2_controllers
Finished <<< ros2_control [0.58s]
Starting >>> pal_gripper                                                                                                                   
Finished <<< transmission_interface [1.00s]                                                                          
Starting >>> pmb2_robot
Finished <<< gripper_controllers [1.01s]                                                                                                
Starting >>> tiago_robot
Finished <<< pal_gripper [0.64s]                                                                                                        
Starting >>> tiago_2dnav_gazebo
Finished <<< ros2_controllers [0.82s]                                                                                          
Starting >>> tiago_simulation
Finished <<< pmb2_robot [0.75s]                                                                                                    
Finished <<< tiago_robot [0.70s]                                                                                                   
Finished <<< tiago_2dnav_gazebo [0.59s]                                                                   
Finished <<< tiago_simulation [0.60s]                     

Summary: 55 packages finished [17.9s]

chatgpt:

如果需要源码编译可以安装dart。

可以参考以下步骤:

1. 下载最新版本的Dart SDK;

2. 解压缩文件;

3. 运行“sudo apt-get install apt-transport-https”;

4. 添加Dart的APT存储库;5. 运行“sudo apt-get update”;

6. 运行“sudo apt-get install dart”。

ROS2支持使用Dart作为其中一种可用的调度器。

要使用Dart,

需要在ROS2的launch文件中添加一行,指定你要使用的调度器:

<launch> <arg name="scheduler" value="dart" /> </launch>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/335395.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

PMP报考条件?

PMP已经被认为是项目管理专业身份的象征&#xff0c;项目经理人取得的重要资质。 PMP考试一般每年在中国大陆地区&#xff0c;会进行四次考试&#xff0c;今天就来详细说一说PMP考试的时间线。 01考试时间PMP考试在中国大陆一年开展四次&#xff0c;分别在每年的3月、6月、9月…

SpringCloud(17):Sentinel简介

1 流量控制&熔断降级介绍 1.1 流量控制简介 拿旅游景点举个示例&#xff0c;每个旅游景点通常都会有最大的接待量&#xff0c;不可能无限制的放游客进入&#xff0c;比如故宫每天只卖八万张票&#xff0c;超过八万的游客&#xff0c;无法买票进入&#xff0c;因为如果超过…

软件架构设计(二)——领域架构、基于架构的软件开发方法

目录 一、架构描述语言 ADL 二、特定领域软件架构 DSSA 三、DSSA的三层次架构模型 . 四、基于架构的软件开发方法 (1)基于架构的软件设计(ABSD) (2)开发过程 一、架构描述语言 ADL ADL是一种形式化语言&#xff0c;它在底层语义模型的支持下&#xff0c;为软件系统概念体…

云安全之浅谈密钥泄露

前言 如今越来越多公司选择使用云平台&#xff0c;诸如:阿里云、腾讯云、AWS、Azure。使用云平台大大降低了企业的资源成本&#xff0c;另一方面随着公用云的普及&#xff0c;也存在着一些风险。现代应用程序需要与其他外部应用程序通信&#xff0c;并且它们需要内部服务到服务…

ESP32设备驱动-模拟输入(ADC)

模拟输入(ADC) 文章目录 模拟输入(ADC)1、ADC介绍2、ADC相关API介绍3、软件准备4、硬件准备5、代码实现本文将介绍如何使用Arduino IDE对ESP32进行模拟读取。模拟读数可用于从可变电阻式电位计或模拟传感器读取值。 1、ADC介绍 ESP32有两个ADC单元,可用于以下场景: 生成…

Echarts的Category轴滑动

Echarts的Category轴滑动 效果&#xff0c;滚轮上下可拖动 配置项 dataZoom: [// {// // disabled: false,// start: 100, //默认为0// end: 80, //默认为100// // startValue: [xArr.length - 1],// // endValue: [xArr.length - 4],// type: slide…

typora每次复制文档都要附带图片文件夹?学会配置gitee图床

0. 引言 作为开发人员&#xff0c;我们习惯使用md格式来编写文档&#xff0c;特别是typora编辑器更是日常使用的软件。但作为轻量化的文档编辑器&#xff0c;我们在默认插入图片时&#xff0c;一般typora会将图片保存到本地或者引用一个本地图片的路径 当文档还在我们本地打开…

免费IB学习资源推荐,学霸常用

看了那些学霸们分享的笔记与网站&#xff0c;深刻认识到学习的竞争&#xff0c;就是对个人资源归纳整理能力的比拼&#xff0c;想要学好IB学科&#xff0c;除了跟着自己的辅导老师积极学习以外&#xff0c;还要学会充分掌握学习资料&#xff0c;这样才能做到心中有数&#xff0…

超清遥感影像语义分割处理

分割出城市中的垃圾堆场,遂寻找到了 UrbanAtlas 2012 database 这个数据集和对应的 baseline baseline IoU for class 1: 0.5667 IoU for class 2: 0.3504 IoU for class 3: 0.0001 IoU for class 4: 0.0002 IoU for class 5: 0.4121 IoU for class 6: 0.0204 IoU for cla…

第三章:IP地址加掩码讲解和ping命令运用

IP地址加掩码&#xff1a;我打几个IP地址给你们瞅瞅。10.20.70.55/24192.168.30.2/24我写的这几个都是24位掩码的&#xff0c;/后面的是掩码位数&#xff0c;也就是是255.255.255.0。子网掩码分为三类&#xff1a;A类&#xff1a;255.0.0.0B类&#xff1a;255.255.0.0C类&#…

RMIserver端和Registry端源码分析

想学JDNI&#xff0c;那想必一定躲不过RMI。 RMI简述 RMI可以远程调用JVM对象并获取结果。所以需要一个server和一个client进行通信。 Server端会创建一个远程对象用于client端远程访问。 下面改造一张来自W3Cschool的图&#xff1a; 只需要知道&#xff1a;Client端使用st…

UE5 UI材质特效

一、扩散的光圈。效果如下&#xff1a;用ps拉一个 对称渐变 和 径向渐变对称渐变&#xff1a;用于做纹理&#xff0c;通过平面坐标到极坐标的公式&#xff0c;转换成环。径向渐变&#xff1a;用于Mask将贴图的纹理组改为 UI&#xff0c;压缩设置改为 用户界面2D。创建材质 M_Te…

Myb atis基础3

Mybatis注解开发单表操作Mybatis的常用注解Mybatis的增删改查MyBatis注解开发的多表操作MyBatis的注解实现复杂映射开发一对一查询一对多查询多对多查询构建sqlsql构建对象介绍查询功能的实现新增功能的实现修改功能的实现删除功能的实现Mybatis注解开发单表操作 Mybatis的常用…

【运筹优化】Python 实现标签算法求解 ESPPRC 问题

文章目录一、标签算法介绍二、SPPRC 问题三、ESPPRC 问题四、Python 实现标签算法求解 ESPPRC 问题4.1 Solomn 数据集4.2 完整代码4.2.1 Functions.py4.2.2 LabelAlgo.py4.2.3 Main.py4.3 结果展示4.3.1 测试案例&#xff1a;c101.txt4.3.2 测试案例&#xff1a;r101.txt一、标…

2022年38女神节大促美妆、珠宝、母婴、保健电商数据回顾

近期&#xff0c;我们陆续接收到了品牌商家朋友们对于2022年女神节大促期间部分品类的数据需求&#xff0c;希望能对今年的大促活动有一个更宏观的认知、更精准的预测&#xff0c;从而拿到更好的数据效果。 为此&#xff0c;在距离大促开启一个月的备货阶段&#xff0c;鲸参谋决…

ChatGPT真的像媒体宣传的那样“四平八稳”吗?

最近ChatGPT非常的火爆&#xff0c;曝光度很高&#xff0c;很多官方媒体和个人的自媒体公众号都进行各种追逐。有些文案写的太好了&#xff0c;真的都要信了。其中有一篇“遨游四海&#xff0c;惊艳于某州”类似旅游宣传的文案。为了测试一下于是仿照他们的问话方式对ChatGPT进…

【服务器数据恢复】服务器raid5故障导致lvm结构损坏的数据恢复案例

服务器数据恢复环境&#xff1a; 服务器内搭建2组raid5磁盘阵列&#xff0c;每组raid5阵列包含4个磁盘&#xff0c;2组阵列都划分为lun并组为lvm结构&#xff0c;采用的ext3文件系统。 服务器故障&#xff1a; 一直raid5磁盘阵列中的一块硬盘由于未知故障离线&#xff0c;此时该…

【4】深度学习之Pytorch——如何使用张量处理时间序列数据集(共享自行车数据集)

表格数据 表格中的每一行都独立于其他行&#xff0c;他们的顺序页没有任何关系。并且&#xff0c;没有提供有关行之前和行之后的列编码信息。 表格类型的数据是指通过表格的形式表示的数据&#xff0c;它以行和列的方式组织数据。表格中的每一行代表一个数据项&#xff0c;每…

九龙证券|A股苏州板块迎来“200+”里程碑

2月10日&#xff0c;跟着裕太微登陆科创板&#xff0c;A股“姑苏板块”正式迎来第201位成员。姑苏也成为继京、沪、深、杭之后&#xff0c;第5个具有A股上市公司总数超越200家的城市。 现在&#xff0c;姑苏不仅生长为位居全国前列的“制作之都”&#xff0c;更成为资本市场高地…

通过对HashMap的源码分析解决部分关于HashMap的问题

HashMap第一次分配多大的空间我们查看resize&#xff08;)中的源码所以当我们没有传入默认容量的参数的时候&#xff0c;默认容量是16当传进一个20的初始参数时&#xff0c;数组的容量是多大所以当我们传入20的参数&#xff0c;这时创建的容量是32&#xff08;2^5&#xff09;对…