http://wiki.ros.org/IDEs#Eclipse
$ roscd your-package
$ make eclipse-project
$ cmake -G"Eclipse CDT4 - Unix Makefile"
Run --> Run configurations... --> C/C++ Application (double click or click on New). Select the correct binary on the main tab (Search project should work when your binary was already built). Then in the environment tab, add (at least)