ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Devel environment for C++?

asked 2015-12-22 14:00:57 -0600

teddyyyy123 gravatar image

do u guys just use emacs/vim + cscope/ctags ?

eclipse CDT would give u real-time compile/syntax check, and easier and more powerful code browsing/refactoring, would it be possible to use eclipse CDT? anybody had experience using CDT with ROS code base?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-12-22 17:23:36 -0600

updated 2015-12-22 17:28:02 -0600

Please see IDEs wiki page and particularly for Eclipse. If you are on a modern ROS distro with catkin build system, the following will generate Eclipse-project that you can import:

catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles"

The above command will generate one project for all packages you have in your workspace. The project files .project and .cproject will be placed inside build directory of your catkin workspace.

edit flag offensive delete link more

Comments

1

The following will generate the .project and .cproject files for only the current directory. Useful if only one package is necessary.

cmake -G "Eclipse CDT4 - Unix Makefiles"
kmhallen gravatar image kmhallen  ( 2015-12-23 18:00:02 -0600 )edit
0

answered 2015-12-22 14:21:58 -0600

mkhansen gravatar image

Yes, it is possible to use the Eclipse CDT. I am using it myself. You can import the project like any other C++ project but you need to change the C++ build settings to use catkin_make (catkin_make --pkg <your package="">) and your build directory to your catkin_ws directory.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-12-22 14:00:57 -0600

Seen: 325 times

Last updated: Dec 22 '15