-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.bash
executable file
·34 lines (23 loc) · 998 Bytes
/
setup.bash
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
#!/usr/bin/env bash
# Modify this for your environment
if [[ -z "${ARDUPILOT_GAZEBO}" ]]; then
export ARDUPILOT_GAZEBO="$HOME/ardupilot_gazebo"
fi
if [[ -z "${ARDUPILOT_HOME}" ]]; then
export ARDUPILOT_HOME="$HOME/ardupilot"
fi
if [[ -z "${COLCON_WS}" ]]; then
export COLCON_WS="$HOME/colcon_ws"
fi
# Add results of ArduSub build
export PATH=${ARDUPILOT_HOME}/build/sitl/bin:$PATH
# Add results of colcon build
source ${COLCON_WS}/install/setup.bash
# Add ardupilot_gazebo plugin
export GZ_SIM_SYSTEM_PLUGIN_PATH=${ARDUPILOT_GAZEBO}/build:$GZ_SIM_SYSTEM_PLUGIN_PATH
# Add bluerov2_gz models and worlds
export GZ_SIM_RESOURCE_PATH=${COLCON_WS}/src/bluerov2_gz/models:${COLCON_WS}/src/bluerov2_gz/worlds:$GZ_SIM_RESOURCE_PATH
# Add orca4 models and worlds
export GZ_SIM_RESOURCE_PATH=${COLCON_WS}/src/orca4/orca_description/models:${COLCON_WS}/src/orca4/orca_description/worlds:$GZ_SIM_RESOURCE_PATH
# Build ros_gz on the humble branch for Gazebo Harmonic
export GZ_VERSION=harmonic