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

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.

主站蜘蛛池模板: 丰顺县| 普陀区| 瓦房店市| 凌源市| 通海县| 响水县| 长子县| 江津市| 四子王旗| 上蔡县| 聂拉木县| 新乡县| 手游| 郑州市| 阳山县| 凤庆县| 辽阳县| 瑞安市| 博白县| 于田县| 慈溪市| 铁岭市| 湘西| 雷山县| 安宁市| 浦县| 宣汉县| 炎陵县| 内黄县| 鄂托克旗| 孝义市| 临汾市| 湟源县| 湘潭市| 鄂托克旗| 镇巴县| 阿坝县| 龙门县| 大埔区| 巴中市| 通辽市|