1, first create a working directory file
Mkdir-p./catkin_ws/src
2. Perform execution in the workspace directory
Catkin_make
The following directory structure is available after you use the Catkin_make command.
3, in the SRC directory to establish the package:
Using the catkin_create_pkg command, create a package under the SRC directory, as shown in the following example:
Catkin_create_pkg beginner_tutorials std_msgs Rospy roscpp
The last generated file directory structure is as follows:
The SRC folder here is used to store the source code.
4, write code, and modify CMakeLists.txt and package.xml files. Finally, it is executed in the working space directory.
Catkin_make
The corresponding executable file can be generated. 、
To enable the ROS system to detect the current created package, you can use the following command to enable the package to be retrieved by Ros under the current console.
But on different consoles, this command needs to be executed repeatedly. You can add the above code under the. bashrc file in the current user's root directory. The code is automatically executed when the console is opened.
Ubuntu14.04 ROS Indigo Installation Tutorial:
http://blog.csdn.net/liuyangriver/article/details/54729800