【ros2】ModuleNotFoundError: No module named ‘cffirmware‘

碎碎念

最近在配置crazyflie的一个新的工具箱CrazyChoir,资料也太少了,还花时间了解了一下

  • webots
  • ros2
  • webots_ROS2

期间报的一些错在偌大的一个互联网都捞不到的程度,哎…

进入正题

按照官网给的安装教程配置完以后

ubuntu 20.04
ROS2 Foxy
Webots R2022a

运行ros2 launch crazychoir_examples formation_webots.launch.py报错:

[driver-21] Traceback (most recent call last):
[driver-21]   File "/home/yz317/dev_ws/build/crazychoir/crazychoir/utils/__init__.py", line 6, in <module>
[driver-21]     import cffirmware
[driver-21] ModuleNotFoundError: No module named 'cffirmware'

解决办法

查看__init__py里面的sys.path.append('~/dev_ws/crazyflie-firmware/build/cffirmware.py')
于是把这个路径添加到.bashrc文件中

export PYTHONPATH="/home/csu317/dev_ws/crazyflie-firmware/build/:$PYTHONPATH"

问题解决!
在这里插入图片描述
但webots里还是有一些warning,不过现在还没有影响使用,就之后再看看咋解决了

WARNING: Floor (PROTO) > Appearance > ImageTexture: Texture image size of '/home/csu317/dev_ws/src/crazychoir/crazychoir/utils/images/casy_logo.png' is not a power of two: rescaling it from 200x200 to 256x256.
WARNING: TexturedBackground (PROTO): Cannot retrieve 'https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/default/worlds/textures/cubic/mountains_back.png': Cannot download https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/default/worlds/textures/cubic/mountains_back.png: 打开https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/default/worlds/textures/cubic/mountains_back.png发生错误
WARNING: TexturedBackground (PROTO): Cannot download leftIrradianceUrl: Cannot download https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/default/worlds/textures/cubic/mountains_back.hdr: 打开https://raw.githubusercontent.com/cyberbotics/webots/R2022a/projects/default/worlds/textures/cubic/mountains_back.hdr发生错误

在这里插入图片描述

参考资料

  • 安装教程
    https://opt4smart.github.io/crazychoir/installation
  • github
    https://github.com/OPT4SMART/crazychoir/
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值