Compiling your Ros program with Eclipse

Source: Internet
Author: User

Original address: http://blog.csdn.net/sujun3304/article/details/18572017

Well, understand the meaning of the various components of the system, or directly into the program real thing from the practice of learning it!

But first of all, the public wants to be good its prerequisite, if you are not a fan of vim and Emacs, like Eclipse's graphical interface, this article is for you.

The first step:

First, make sure your project is created through ROSCREATE-PKG.

Assuming your Ros project directory is CATKIN_WS, go to Catkin_ws and execute the following command. Generate Eclipse-aware makefile for your project

Catkin_make--force-cmake-g "Eclipse Cdt4-unix makefiles"

Step Two:

Make sure that your eclipse has the CDT installed.

Step Three:

Now you have catkin_ws the project in the Eclipse C + + project.

File > New > Project

Select items that require import

Fourth Step:

To configure your compilation path

Project > Properties > C + + Build

Set build location to Catkin_ws/build

Fifth step: How to solve the following problems?

Importerror:no module named Genmsg.template_tools

Add the PYTHONPATH environment variable to your eclipse.

Project > Properties > C + + Build > Environment

OK, so far, your eclipse has been configured to complete. Try Project > Build Project quickly.

Useful tool:

Cmake syntax highlight for Eclipse. http://cmakeed.sourceforge.net/

Reference documents:

http://answers.ros.org/question/52013/catkin-and-eclipse/

 
Related Article

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.