1, the creation of ROS package _ work

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.