Skip to content

meco-group/impact-2025

Repository files navigation

Impact Workshop 2025

Introduction

This repository contains source of training material for the Impact Workshop 2025. The topics covered are:

  • Recap of Nonlinear Programming, Optimal Control and Model Predictive Control
  • Tutorial 1: Using Impact to rapidly specify, prototype and deploy model predictive controllers
  • Tutorial 2: Neural Network-MPC

Development environment

Should work for Windows, Linux and Mac.

Clone/download this repository

Install Conda

If you have not installed Conda, you should first install Miniconda. Miniconda is a minimal installer for Conda. You can install Miniconda by following these steps:

For Linux

  1. Download the Miniconda installer for Linux from the Miniconda website.
  2. Open a terminal.
  3. Navigate to the directory where you downloaded the installer.
  4. Run the installer with the following command, replacing Miniconda3-latest-Linux-x86_64.sh with the name of the file you downloaded:
    bash Miniconda3-latest-Linux-x86_64.sh
  5. Follow the on-screen instructions to complete the installation.
  6. Close and reopen your terminal to apply the changes.

For Windows

For Windows users, follow these steps to install Miniconda:

  1. Download the Miniconda installer for Windows from the Miniconda website.
  2. Double-click the downloaded file to start the installation.
  3. Follow the on-screen instructions, making sure to check the option to "Add Miniconda to my PATH environment variable" for an easier use of Conda from the command prompt.
  4. After installation, open the Command Prompt or Anaconda Prompt from the Start menu to start using Conda.

Creating Conda environment

Figure out a desired PYTHON_VERSION

Open a Conda shell

⚠️ On Windows, pick "Anaconda Prompt", not "Anacoda PowerShell Prompt"

Create the Conda environment for the workshop

conda create --name workshop_impact python=<PYTHON_VERSION> -y --channel=defaults --override-channels
conda activate workshop_impact
(Only Windows) $ conda install -y --channel conda-forge cmake clang=15 lld=15 llvmdev=15 ninja 
(Only linux and Mac) $ conda install -y --channel conda-forge cmake clang lld llvmdev ninja

pip install -r requirements.txt

Verify the environment

  1. Run python test.py

You'll be queried "Do you wish to set up Tera renderer automatically?" Answer 'y'.

This file should run succesfully.

⚠️ Getting the error "CMake was unable to find a build program corresponding to Ninja" or "No CMAKE_RC_COMPILER could be found"? That means that you opened the wrong shell on Windows. Please see 2.

⚠️ Getting the error "lld-link: error: could not open 'kernel32.lib': no such file or directory"? Solve this by installing https://visualstudio.microsoft.com/visual-cpp-build-tools/ and re-opening the Anaconda Prompt.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.