-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bash
More file actions
executable file
·30 lines (25 loc) · 1.13 KB
/
Copy pathsetup.bash
File metadata and controls
executable file
·30 lines (25 loc) · 1.13 KB
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
#!/usr/bin/env bash
# Source this file: source ./setup.bash
WORKSPACE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export FAULTPILOT_HOME="$WORKSPACE"
export ARDUPILOT_HOME="$WORKSPACE/third_party/ardupilot"
if [ -d "$ARDUPILOT_HOME/Tools/autotest" ]; then
export PATH="$ARDUPILOT_HOME/Tools/autotest:$PATH"
fi
export GZ_SIM_RESOURCE_PATH="\
$WORKSPACE/assets/models:\
$WORKSPACE/assets/worlds:\
$WORKSPACE/third_party/SITL_Models/Gazebo/models:\
$WORKSPACE/third_party/SITL_Models/Gazebo/worlds:\
$WORKSPACE/third_party/ardupilot_gazebo/models:\
$WORKSPACE/third_party/ardupilot_gazebo/worlds"
# Governed runs use the workspace-built Gazebo plugin only; launch entrypoints
# fail closed when this build is missing rather than falling back to an
# installed plugin.
export GZ_SIM_SYSTEM_PLUGIN_PATH="$WORKSPACE/build/ardupilot_gazebo"
export FAULTPILOT_BUILD="$WORKSPACE/build"
export FAULTPILOT_LOGS="$WORKSPACE/var/logs"
export CCACHE_DIR="$WORKSPACE/var/cache/ccache"
export MPLCONFIGDIR="$WORKSPACE/var/cache/matplotlib"
export PYTHONPATH="$WORKSPACE/src${PYTHONPATH:+:$PYTHONPATH}"
mkdir -p "$CCACHE_DIR" "$MPLCONFIGDIR" "$FAULTPILOT_LOGS"