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/