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

Revision history [back]

It seems that the project file is being generated correctly.

Now you only need to import it to your project into Eclipse. For that you should start eclipse from a terminal where the ROS-related environment variables are defined (they should be if you added the line source /opt/ros/ROS_VERSION/setup.bash to your .bashrc file).

To make it easier I have this launcher in $HOME/Desktop/eclipse.desktop:

[Desktop Entry]
Exec=bash -i -c "PATH_TO_ECLIPSE/eclipse"
Icon=PATH_TO_ECLIPSE/icon.xpm
Type=Application
Terminal=false
StartupNotify=true
Name=Eclipse
GenericName=Integrated Development Environment
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;
Categories=Eclipse;Development; IDE;
InitialPreference=9

Once Eclipse is running go to File->Import...

Select "Existing Projects into Workspace" on the dialog and click "Next"

Choose "Select root directory" and click the button "Browse...". Now navigate until you find the folder where your ROS project is stored and select it. (You will not be able to see the .project file on the list, but that is fine, just hit the "OK" button.)

Now the project name will appear on the Projects list. Click the "Finish" button and you are done!

I hope this helps.