官术网_书友最值得收藏!

Introducing catkin

Catkin is the official build system of ROS. Before catkin, ROS used the rosbuild system to build packages. Its replacement is catkin on the latest ROS version. Catkin combines CMake macros and Python scripts to provide the same normal workflow that CMake produces. Catkin provides better distribution of packages, better cross-compilation, and better portability than the rosbuild system. For more information, refer to wiki.ros.org/catkin.

Catkin workspace is a folder where you can modify, build, and install catkin packages.

Let's check how to create an ROS catkin workspace.

The following command will create a parent directory called catkin_ws and a subfolder called src:

    $ mkdir -p ~/catkin_ws/src  

Switch directory to the src folder using the following command. We will create our packages in the src folder:

    $ cd ~/catkin_ws/src  

Initialize the catkin workspace using the following command:

    $ catkin_init_workspace  

After you initialize the catkin workspace, you can simply build the package (even if there is no source file) using the following command:

    $ cd ~/catkin_ws/
    $ catkin_make  

The catkin_make command is used to build packages inside the src directory. After building the packages, we will see a build and devel folder in catkin_ws The executables are stored in the build folder. In the devel folder, there are shell script files to add the workspace on the ROS environment.

主站蜘蛛池模板: 江阴市| 东乌珠穆沁旗| 应用必备| 辉南县| 肥城市| 安阳市| 淄博市| 普陀区| 翁牛特旗| 城步| 镇原县| 苍梧县| 白水县| 博爱县| 莱阳市| 法库县| 青岛市| 德昌县| 兴义市| 中牟县| 景宁| 伊金霍洛旗| 大方县| 定襄县| 乐昌市| 和静县| 阳新县| 久治县| 赤城县| 泗阳县| 肇州县| 孝昌县| 大关县| 界首市| 满城县| 开原市| 禄劝| 张家口市| 裕民县| 湘潭市| 项城市|