Skip to content

Creating a C++ XRP Project

This tutorial details how to create a blank C++ XRP project using the command-based framework. For a more in-depth overview, please refer to the WPILib documentation.

Project Creation Steps

  1. Open WPILib VS Code. If you do not have this, see the WPILib Installation Guide.

  2. Click the WPILib icon.

    1. WPILib icon is in the upper-right corner.
    2. WPILib Icon

  3. In the prompt window, type "New Project" and click "WPILib: Create a new project".

    1. Create a new project

  4. A window like this will appear:

    1. New project window

  5. Click "Select a project type (Example or Template)".

  6. A prompt window will appear. Select "Template" -> "C++" -> "XRP - Command Robot".

    1. Select template

  7. Select a folder for your project.

  8. For Project Name: Argos Tutorial.

  9. For Team number: 1756.

  10. ⚠️ Important: Enable Desktop Support

    1. You must click the checkbox to Enable Desktop Support. This is critical for running the simulator.
    2. Enable Desktop Support

  11. Click "Generate Project".

    1. Generate Project

  12. Click "Yes (Current Window)".

    1. This will open the project you just created.
    2. Yes (Current Window)

  13. It should open a file structure that looks like this.

    1. Base project file structure

  14. Congratulations! You have created an empty project.