Ubuntu 16.04 catkin_make 常见操作

参考博客:https://answers.ros.org/question/54178/how-to-build-just-one-package-using-catkin_make/

1. catkin_make 构建单个包

catkin_make --only-pkg-with-deps <target_package>

构建单个包完成之后可以使用如下指令恢复构建全部包的状态

catkin_make -DCATKIN_WHITELIST_PACKAGES=""

2. 另外一种更好的方式是使用Catkin-Tools

sudo apt-get install python-catkin-tools

2.1构建单个包

catkin build <target_package>

2.2可以再包的根目录下构建当前包

catkin build --this

  

posted @ 2019-09-07 15:12  采男孩的小蘑菇  阅读(5257)  评论(0编辑  收藏  举报