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 )
具体使用教程参考官网链接进行。
编译过程如下:
Starting >>> roscpp_tutorials
Starting >>> rospy_tutorials
Starting >>> turtlesim
--- stderr: rospy_tutorials
CMake Warning:
Manually-specified variables were not used by the project:
CATKIN_INSTALL_INTO_PREFIX_ROOT
---
Finished <<< rospy_tutorials [16.41s]
--- stderr: turtlesim
CMake Warning:
Manually-specified variables were not used by the project:
CATKIN_INSTALL_INTO_PREFIX_ROOT
---
Finished <<< turtlesim [29.56s]
--- stderr: roscpp_tutorials
CMake Warning:
Manually-specified variables were not used by the project:
CATKIN_INSTALL_INTO_PREFIX_ROOT
---
Finished <<< roscpp_tutorials [39.06s]
Starting >>> ros_tutorials
--- stderr: ros_tutorials
CMake Warning:
Manually-specified variables were not used by the project:
CATKIN_INSTALL_INTO_PREFIX_ROOT
---
Finished <<< ros_tutorials [2.63s]
Summary: 4 packages finished [42.15s]
4 packages had stderr output: ros_tutorials roscpp_tutorials rospy_tutorials turtlesim
----
----
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有