有很多的朋友在我博客下留言交流,由于个人能力有限,加班也特别多,并不能有效解答,实在非常抱歉。于是决定写一篇通用性的解决方法的博客。

一般而言,大部分问题运用搜索工具能找到答案的,不在此赘述。

于是,我选择了最新的Webots2021b和ros2foxy做一下介绍。

遇到的问题如:

  • Webots2021b和ROS2调试笔记21-07-27

之后解决如:

  • Webots2021b和ROS2调试笔记21-07-29


但是如何解决,并没有提及,我使用的功能包是webots_ros2 1.1.0版本。

官方也在2小时前更新了源码,后续不会再有这个bug啦。

这个版本有一些小bug,并不能直接在win10系统结合ros2foxy使用,于是去issues发求助并得到解决。


如下(github.com/cyberbotics/webots_ros2/issues/256):

Failed <<< webots_ros2_driver [9.47s, exited with code 1] #256
 Closed
zhangrelay opened this issue 3 days ago · 6 comments
 Closed
Failed <<< webots_ros2_driver [9.47s, exited with code 1]
#256
zhangrelay opened this issue 3 days ago · 6 comments
Comments
@zhangrelay
 
zhangrelay commented 3 days ago • 
Describe the Bug
win10 webots_ros2 1.1.0 foxy with webots 2021b

C:\ros_ws\webots_ros2>colcon build
[1.571s] root DEBUG Using proactor: IocpProactor
Starting >>> vision_msgs
Starting >>> webots_ros2_ur_e_description
Starting >>> webots_ros2_importer
Finished <<< webots_ros2_ur_e_description [3.91s]
Finished <<< webots_ros2_importer [3.83s]
[Processing: vision_msgs]vision_msgs:build - 34.0s]
Finished <<< vision_msgs [48.8s]
Starting >>> webots_ros2_msgs
[Processing: webots_ros2_msgs]
Finished <<< webots_ros2_msgs [34.1s]
Starting >>> webots_ros2_core
Starting >>> webots_ros2_driver
Finished <<< webots_ros2_core [3.62s]
Starting >>> webots_ros2_abb
Starting >>> webots_ros2_universal_robot
Starting >>> webots_ros2_epuck
Starting >>> webots_ros2_examples
Starting >>> webots_ros2_mavic
Starting >>> webots_ros2_tesla
Starting >>> webots_ros2_tiago
Finished <<< webots_ros2_abb [12.7s]
Starting >>> webots_ros2_tutorials
Finished <<< webots_ros2_universal_robot [12.9s]
Starting >>> webots_ros2_demos
Finished <<< webots_ros2_tiago [12.1s]
Finished <<< webots_ros2_mavic [12.7s]
Finished <<< webots_ros2_examples [13.0s]
Finished <<< webots_ros2_tesla [12.6s]
Finished <<< webots_ros2_epuck [13.3s]
Finished <<< webots_ros2_tutorials [5.91s]
Finished <<< webots_ros2_demos [8.31s]
Failed <<< webots_ros2_driver [43.9s, exited with code 1]

Summary: 14 packages finished [2min 7s]
1 package failed: webots_ros2_driver
3 packages not processed

Affected Packages
List of affected packages:

webots_ros2_driver
Screenshots

ros2

`
C:\ros_ws\webots_ros2>colcon build --packages-up-to webots_ros2_turtlebot
[1.491s] root DEBUG Using proactor: IocpProactor
Starting >>> vision_msgs
Finished <<< vision_msgs [11.9s]
Starting >>> webots_ros2_msgs
Finished <<< webots_ros2_msgs [11.6s]
Starting >>> webots_ros2_driver
Starting >>> webots_ros2_core
Finished <<< webots_ros2_core [3.78s]
Failed <<< webots_ros2_driver [9.47s, exited with code 1]

Summary: 3 packages finished [33.4s]
1 package failed: webots_ros2_driver
2 packages not processed
`

System

Webots Version: [2021b]
ROS Version: [foxy]
Operating System: [Windows 10]
Graphics Card: [Intel]
Additional context
Add any other context about the problem here.

@lukicdarkoo lukicdarkoo linked a pull request that will close this issue 3 days ago
Fix Windows build #258
 Merged
@lukicdarkoo
 
Member
lukicdarkoo commented 3 days ago
Thank you for reporting the problem, we working on fixing it. Meanwhile, if you are in hurry then you checkout at ad78a04

@lukicdarkoo lukicdarkoo added this to the 1.1.1 milestone 3 days ago
@lukicdarkoo lukicdarkoo added the bug label 3 days ago
@lukicdarkoo lukicdarkoo self-assigned this 3 days ago
@zhangrelay
 
Author
zhangrelay commented 3 days ago
Thank you for reporting the problem, we working on fixing it. Meanwhile, if you are in hurry then you checkout at ad78a04

Thank you very much, let me give it a try.

@zhangrelay
 
Author
zhangrelay commented 2 days ago
Thank you for reporting the problem, we working on fixing it. Meanwhile, if you are in hurry then you checkout at ad78a04

Finished <<< webots_ros2_driver [20.4s] This is ok.
But there is one last little problem.

Failed   <<< webots_ros2_control [11.6s, exited with code 1]

Summary: 16 packages finished [1min 4s]
  1 package failed: webots_ros2_control
  2 packages not processed
Looking forward to the 1.1.1 release.

Thanks a lot for reply.

@lukicdarkoo
 
Member
lukicdarkoo commented 2 days ago • 
A few questions:

Did you try from Fix Windows build #258?
Can you use the --event-handlers console_cohesion+ flag so we get more details (e.g. colcon build --event-handlers console_cohesion+)?
Did you sync the submodules, git pull --recurse-submodules?
Do you have necessary dependencies:
git clone --branch=ros2 https://github.com/ros-perception/vision_msgs.git src/vision_msgs
git clone --branch=ros2 https://github.com/ros-drivers/ackermann_msgs.git src/ackermann_msgs
git clone https://github.com/ros-controls/ros2_control.git src/ros2_control
git clone https://github.com/ros-controls/ros2_controllers.git src/ros2_controllers
git clone --branch=foxy-devel https://github.com/ros-controls/control_msgs.git src/control_msgs
git clone --branch=ros2 https://github.com/ros/angles.git src/angles
git clone --branch=foxy-devel https://github.com/ros-controls/realtime_tools.git src/realtime_tools
@zhangrelay
 
Author
zhangrelay commented 22 hours ago
A few questions:

Did you try from Fix Windows build #258?
Can you use the --event-handlers console_cohesion+ flag so we get more details (e.g. colcon build --event-handlers console_cohesion+)?
Did you sync the submodules, git pull --recurse-submodules?
Do you have necessary dependencies:
git clone --branch=ros2 https://github.com/ros-perception/vision_msgs.git src/vision_msgs
git clone --branch=ros2 https://github.com/ros-drivers/ackermann_msgs.git src/ackermann_msgs
git clone https://github.com/ros-controls/ros2_control.git src/ros2_control
git clone https://github.com/ros-controls/ros2_controllers.git src/ros2_controllers
git clone --branch=foxy-devel https://github.com/ros-controls/control_msgs.git src/control_msgs
git clone --branch=ros2 https://github.com/ros/angles.git src/angles
git clone --branch=foxy-devel https://github.com/ros-controls/realtime_tools.git src/realtime_tools
I followed the steps to compile and it was completely fine.

git clone --branch=fix-windows-build --recurse-submodules https://github.com/cyberbotics/webots_ros2.git
git all necessary dependencies
colcon build --event-handlers console_cohesion+
Finished <<< webots_ros2 [7.98s]

Summary: 42 packages finished [2min 57s]

colcon build is OK.

@zhangrelay
 
Author
zhangrelay commented 22 hours ago
Now all webots_ros2 demos can be run and used normally in win10 + ROS2.

@zhangrelay zhangrelay closed this 22 hours ago
@cyberbotics cyberbotics deleted a comment from zhangrelay 16 hours ago


如何快速解决Github下载源码编译报错并顺利运行机器人等项目案例(Webots+ROS2)相关推荐

  1. 源码编译报错系列之:Fatal error compiling: 无效的标记: --release -> [Help 1]

    源码编译报错系列之:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (defau ...

  2. 古月居 机器人开发实践源码 编译报错问题解决方法

    ubuntu:16.04.7 ros:kinetic 移植<机器人开发实践>源码包 ros_exploring,出现的问题都包含于以下内容中. 书中提到,如果将源码包 ros_explor ...

  3. Spring源码编译报错那些事

    Spring源码编译报错那些事(不会吧不会吧,不会真的有人刚学习源码就被劝退了吧

  4. Android 12源码编译报错:FAILED: out/soong/build.ninja

    Android 12源码编译报错:FAILED: out/soong/build.ninja android12源码编译中报如下错误: 网上查了比较多资料发现是swap分区不够导致的,报错时使用fre ...

  5. 机器人开发实践源码编译报错问题解决方法

    书中提到,如果将源码包 ros_exploring 直接放到 catkin 工作空间中,需要将 ros2 文件夹移出到工作空间之外,否则编译失败. 将 ros2 文件夹移出之后仍然报错,具体信息如下: ...

  6. Android10源码编译报错ninja: build stopped: subcommand failed处理

    1.背景说明 虚拟机:wsl 2.0 Ubuntu18.04 虚拟机配置:8G内存,1T存储 软件版本:Android10源码,无任何修改 报错内容:编译至97%时,ninja编译中断,ninja: ...

  7. *现在感觉librealsense和realsense-ros的安装挺简单的(普通X86平台)(现在发现都有两种安装方式,下载源码编译或者二进制安装)

    下面说的就是在普通X86平台上,不是在ARM平台,不在树莓派,TX2这些平台上. 之前潜意识里似乎还觉得会比较麻烦,实际我现在真正再看一下,回看一下,不是这样的.可能就像装双系统一样,实际并不麻烦,跟 ...

  8. 上传本地代码到github从github下载源码

    最近在玩github,下面简单介绍下githup的使用 将本地代码同步到github. 使用Git GUI同步  1,先下载git,然后安装.右键如图所示. 2,在github里新建一个 reposi ...

  9. centos7升级gcc版本,无需手动下载源码编译

    centos7升级gcc版本,无需手动下载源码编译 第一步: 安装centos-release-scl 第二步: 安装devtoolset 第三步: 激活对应的devtoolset 第四步: 查看版本 ...

最新文章

  1. Java字符串处理技巧
  2. ue4 无限地图_RPG游戏开发日志13:无限地图的实现
  3. mysql 5.7 初始化数据库_MySQL 5.7 新特性之初始化
  4. Oracle错误代码:ORA-28002导致密码消失
  5. 【易懂】Java源码角度分析put()与putIfAbsent()的区别——源码分析系列
  6. 第四章 数据的概括性度量
  7. HTML标签类型及特点
  8. 在JAVA中如何跳出当前的多重嵌套循环
  9. docker 删除image_不是吧!Docker上手,看会觉得自己又行了!
  10. 计算机考试桌贴,考试考场桌贴打印
  11. 用钩子程序实现根据一个表的字段更新另一个表的字段
  12. MOSFET的半桥驱动电路设计要领详解
  13. [2022 Google开发者大会] 机器学习-TensorFlow会议记录
  14. Elasticsearch高级(Shards、高可用集群搭建)
  15. 关于vue-cli3的浏览器兼容性
  16. 格式化日期之YYYY与yyyy
  17. unity3D 使用rigidbody.AddForce(movement)
  18. 【JVM】G1(Garbage First)垃圾收集器的原理与应用场景
  19. Web调用浏览器摄像头
  20. 3维空间中点、线、面之间的数学关系(python代码)

热门文章

  1. MYsql---添加自增字段
  2. opencv图像运算(python)
  3. Altium Designer-打开丝印层、位号,不显示器件位号问题
  4. maven将lib打包进jar
  5. 华为路由 鸿蒙,华为鸿蒙系统适配流程介绍
  6. 斐波那契堆(不太详尽)
  7. 【tsinsen A1490】osu!(乔明达) 矩阵+线段树
  8. 怎么用java调用mysql_java 调用mysql实例
  9. 奥钻机器人_供应TB190-16机器人行走伺服行星齿轮减速机
  10. 【计算机视觉与深度学习】全连接神经网络(一)