在Ubuntu 18.04 LTS使用colcon工具编译ROS 1/2包

举报
zhangrelay 发表于 2021/07/15 04:03:47 2021/07/15
【摘要】 ROSwiki官网推荐了新的软件包编译工具colcon。ROS编译工具主要经历了三个阶段: 1. catkin 2. ament 3. colcon。 什么是colcon? colcon is a command line tool to improve the workflow of building, testing and using multiple software...

ROSwiki官网推荐了新的软件包编译工具colcon。ROS编译工具主要经历了三个阶段:

1. catkin 2. ament 3. colcon

什么是colcon?

colcon is a command line tool to improve the workflow of building, testing and using multiple software packages.It automates the process, handles the ordering and sets up the environment to use the packages.

colcon是一个命令行工具,用于改进编译,测试和使用多个软件包的工作流程。它实现过程自动化,处理需求并设置环境以便于使用软件包。

----

安装和使用,请参考:http://colcon.readthedocs.io/en/latest/index.html

下面简述流程:

一共两步:

1. sudo apt install python3-colcon-common-extensions

2. colcon build (source install/setup.bash )

具体使用教程参考官网链接进行。

编译过程如下:


  
  1. Starting >>> roscpp_tutorials
  2. Starting >>> rospy_tutorials
  3. Starting >>> turtlesim
  4. --- stderr: rospy_tutorials
  5. CMake Warning:
  6. Manually-specified variables were not used by the project:
  7. CATKIN_INSTALL_INTO_PREFIX_ROOT
  8. ---
  9. Finished <<< rospy_tutorials [16.41s]
  10. --- stderr: turtlesim
  11. CMake Warning:
  12. Manually-specified variables were not used by the project:
  13. CATKIN_INSTALL_INTO_PREFIX_ROOT
  14. ---
  15. Finished <<< turtlesim [29.56s]
  16. --- stderr: roscpp_tutorials
  17. CMake Warning:
  18. Manually-specified variables were not used by the project:
  19. CATKIN_INSTALL_INTO_PREFIX_ROOT
  20. ---
  21. Finished <<< roscpp_tutorials [39.06s]
  22. Starting >>> ros_tutorials
  23. --- stderr: ros_tutorials
  24. CMake Warning:
  25. Manually-specified variables were not used by the project:
  26. CATKIN_INSTALL_INTO_PREFIX_ROOT
  27. ---
  28. Finished <<< ros_tutorials [2.63s]
  29. Summary: 4 packages finished [42.15s]
  30. 4 packages had stderr output: ros_tutorials roscpp_tutorials rospy_tutorials turtlesim

----


----

文章来源: zhangrelay.blog.csdn.net,作者:zhangrelay,版权归原作者所有,如需转载,请联系作者。

原文链接:zhangrelay.blog.csdn.net/article/details/80922056

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。