You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a CasADi C++ API example of an Ackermann-steered robot
navigating to a target waypoint within the prediction horizon. The
example plots the planned trajectory and the control acutation.
The commit includes a generalised C++ interface for the MPC controller
together with an example executable and an updated CMake file to build
said example. The commit also includes instructions on building the
Matplot++ library, required for generating the trajectory and control
actuation plots.

30
+
31
+

32
+
33
+

34
+
21
35
# Getting started
22
36
23
37
Clone the repository to a folder of your choice:
@@ -97,4 +111,39 @@ CasADi looks for the HSL solvers under a legacy name. You may be required to cre
97
111
```shell
98
112
cd /usr/lib/local
99
113
ln -S libcoinhsl.so libhsl.so
114
+
```
115
+
116
+
### (Optional) Building the Matplot++ library from sources
117
+
118
+
To generate plots at the end of the execution of the C++ examples, the [Matplot++](https://alandefreitas.github.io/matplotplusplus/) library is required. Below are instructions to build the Matplot++ library from sources on Ubuntu 22.04.
119
+
120
+
Install the required dependencies:
121
+
122
+
```shell
123
+
sudo apt install -y cmake-curses-gui libfftw3-dev
124
+
```
125
+
126
+
Clone the [alandefreitas/matplotplusplus](https://github.com/alandefreitas/matplotplusplus) in a folder of your choice (the home directory for the current user `~/` in these instructions):
0 commit comments