Using Eclipse CDT for the Udacity Self Driving Cars Nanodegree C++ projects

There are a number of C/C++ IDEs that can be used for working on the Udacity SDCND C++ projects. This blog post contains a few tips for using Eclipse CDT to solve the Extended Kalman Filter project.

  1. Get Eclipse CDT. Either by downloading and installing it from the Eclipse Website or by using the setup from my last post.
  2. Checkout the project from github
  3. invoke cmake ..  -DCMAKE_BUILD_TYPE=Debug invoke cmake ..  -G “Eclipse CDT4 – Unix Makefiles” (in contrast to the documentation, I compile with debug)
  4. This creates a .cproject and .project in the build directory. Copy those one level higher.
  5. Import the project as existing project in Eclipse.
  6. I usually compile / run from the command line. Open a shell directly from Eclipse
  7. To run your code from within Eclipse or to debug from within Eclipse, use the context menu.
  8. Debug mode will stop in “main()”, to disable this. Click on the settings for your debug configuration:
    2018-01-20_16h38_53Goto the debugger tab and disable the option:

An Integrated Development Environment for the SDCND

The self-driving car nanodegree from Udacity includes a number of different projects in Python and C++ in different environments (local PC, AWS if you don’t have an GPU). A common discussion topic on Slack is  the question, what everyone is using as editor / IDE.

Since I have been recently working on the topic of development environments for ML in automotive, I took the inspiration and set up and easy to install configuration for Eclipse including

  • PyDev for Python Development
  • CDT for C/C++ development
  • EGit for the integrated git access
  • AWS Eclipse integration for starting / stopping and accessing the AWS instances
  • Remote Systems Explorer etc. for easy access to AWS instances
  • Linux Tools for Docker for Docker management.

All these can be easily installed by means of the Eclipse installer (also known as “Oomph”). If you’d like to try the configuration, perform the following steps:

  1. Download the Eclipse Installer from
  2. Download the setup configuration from
  3. Start the Eclipse Installer. Choose the “Advanced Configuration” Mode in the drop-down menu on the top right.
  4. In the first diaglog, chose the C/C++ Developer entry as a base, and use “Oxygen” as product:
  5. Click next, use the “+” button at the top to add our setup file:
  6. Click next and proceed to the final dialog. The installer will download and install all the Eclipse packages.

You can now start to clone the SDCND repositories and work on your projects.