ROS2 编译问题解决

 python3 src/ament/ament_tools/scripts/ament.py build --symlink-install --isolated
Traceback (most recent call last):
  File "src/ament/ament_tools/scripts/ament.py", line 139, in <module>
    from ament_tools.package_types.ament import entry_point_data as ament_entry_point_data  # noqa
  File "/home/shadylady/rosdev/ament_ws/src/ament/ament_tools/ament_tools/package_types/ament.py", line 15, in <module>
    from catkin_pkg.package import package_exists_at
ImportError: No module named 'catkin_pkg'

 

 

ros2@ros2-VirtualBox:~/ros2_ws$ python3.5 src/ament/ament_tools/scripts/ament.py build --build-tests --symlink-install
Traceback (most recent call last):
  File "src/ament/ament_tools/scripts/ament.py", line 139, in <module>
    from ament_tools.package_types.ament import entry_point_data as ament_entry_point_data  # noqa
  File "/home/ros2/ros2_ws/src/ament/ament_tools/ament_tools/package_types/ament.py", line 15, in <module>
    from catkin_pkg.package import package_exists_at
ImportError: No module named 'catkin_pkg'
ros2@ros2-VirtualBox:~/ros2_ws$ sudo apt-get install python3-catkin-pkg
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  python3-catkin-pkg-modules python3-dateutil python3-docutils python3-pygments python3-roman
建议安装:
  texlive-latex-recommended texlive-latex-base texlive-lang-french fonts-linuxlibertine | ttf-linux-libertine ttf-bitstream-vera
下列软件包将被【卸载】:
  python-catkin-pkg
下列【新】软件包将被安装:
  python3-catkin-pkg python3-catkin-pkg-modules python3-dateutil python3-docutils python3-pygments python3-roman
升级了 0 个软件包,新安装了 6 个软件包,要卸载 1 个软件包,有 12 个软件包未被升级。
.....

ros2@ros2-VirtualBox:~/ros2_ws$ python3.5 src/ament/ament_tools/scripts/ament.py build --build-tests --symlink-install

 

ROS 官网参考

维基

网页

  • 只读网页
  • 信息
  • 附件
  •          更多操作:源码 打印视图 输出Docbook格式 删除缓存 ------------------------ 拼写检查 相似网页 本站地图 ------------------------ 改名 复制网页 删除 ------------------------ 我的网页 订阅 ------------------------ 删除垃圾广告 恢复成此版本 网页打包 同步网页 ------------------------ CreatePdfDocument 加载 RawFile 保存 SlideShow     

用户

Standalone Python library for the catkin package system. Contains support for finding and introspecting catkin packages in the file system.

 

目录

  1. Installing catkin_pkg
    1. On non ubuntu platforms
  2. External link

 

 

 

Installing catkin_pkg

 

sudo apt-get install python-catkin-pkg

The Debian package only contains the command line scripts and depends on another package named python-catkin-pkg-modules which contains the Python modules required for the scripts. This allows to install python-catkin-pkg-modules and python3-catkin-pkg-modules at the same time.

 

On non ubuntu platforms

Use pip:

 

sudo pip install -U catkin_pkg
  • In case you experience error with the command above, you might want to run it without -U option. See this thread.

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值