Ask Your Question
0

A setting ROS environment variables in eclipse, getting semantic Errors

asked 2016-05-11 22:49:46 -0600

anilmullapudi gravatar image

updated 2016-05-11 22:51:32 -0600

I ran the below command to generate .project files.

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

Also in eclipse, i added below environment varialbles ROS_ROOT

ROS_PACKAGE_PATH

PYTHONPATH

PATH

I rebuild all the indexes. But still i am getting unresolved inclusions and semantic errors :(

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-12 06:24:56 -0600

anilmullapudi gravatar image

The issue was fixed. the reason for the error is, I opened the entire build directory in eclipse instead of just one package.

Now i am building only one package from terminal using 'cmake -G"Eclipse CDT4 - Unix Makefiles' . This command needs to run from inside the package directory. After that, i am importing the same package from the eclipse.

In order to build package from eclipse, first i need to compile the code using roamake command from the terminal (inside the package directory), and specified the generated binary files location in eclipse runtime configurations.

After following above steps, all errors gone, and i was able to run the ros packages from eclipse.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-05-11 22:49:46 -0600

Seen: 46 times

Last updated: May 12 '16