-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_demo.sh
More file actions
executable file
·36 lines (30 loc) · 772 Bytes
/
Copy pathrun_demo.sh
File metadata and controls
executable file
·36 lines (30 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
set -e
echo ">> 1. Building C++ Project (and generating models)..."
# Clean build to ensure fresh config
rm -rf build
mkdir -p build
cd build
# Configure and Build
cmake ..
make car_demo -j4
cd ..
echo ">> 2. Running Solver..."
# Path depends on CMake version/layout, but usually mirrors source
BIN_PATH="./build/examples/01_car_tutorial/car_demo"
if [ -f "$BIN_PATH" ]; then
$BIN_PATH
else
echo "Error: car_demo executable not found at $BIN_PATH"
# Try to find it
find ./build -name car_demo
exit 1
fi
echo ">> 3. Plotting Results..."
if [ -f "trajectory.csv" ]; then
python3 tools/plot_trajectory.py trajectory.csv
echo ">> Done. Check trajectory_plot.png"
else
echo "Error: trajectory.csv not generated!"
exit 1
fi